engineering-lite

Engineering-lite: do the right work at the right stage; write design documents when formal processes are needed; perform phased checks of code implementation, combined with task anchors to improve effectiveness.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "engineering-lite" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-481773430f41692a05d0ce1bda2fe8cb61a3851bf9375ed5e8a986d695c3ed56. Verify the upstream source and version against https://skillhub.cn/skills/user_f9be8d90/engineering-lite before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Engineering-lite: do the right work at the right stage; write design documents when formal processes are needed; perform phased checks of code implementation, combined with task anchors to improve effectiveness.

0 Downloads

Introduction source: third_party · user_f9be8d90 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "engineering-lite"
description: 工程精简开发 :1.在正确的阶段做正确的事,当需要正规流程时,设计文档。2.代码实现阶梯检查,结合我的任务锚点会很香

工程精简开发流 (engineering-lite)

核心哲学

在正确的阶段做正确的事。

  • 需求不明确时:别急着写,先问清楚(mattpocock)
  • 需求已明确时:别多写,YAGNI Level 1 就停(ponytail)

分层工作流

Stage 1: 需求澄清(当用户需求模糊时)

触发条件:用户给的需求 < 一句话,或者包含"做个 XX"、"我想实现 XX"等模糊表达

动作:

  1. 启动 grill-with-docs 模式
  2. 追着用户问 3-5 个关键问题:
    • 目标用户是谁?
    • 核心场景是什么?(一句话)
    • 数据从哪里来?
    • 需要持久化吗?
    • 部署到哪里?
  3. 生成 CONTEXT.md 作为项目词汇表

不要:在需求澄清阶段写任何代码。


Stage 2: 设计文档(当需要正规流程时)

触发条件:项目 > 2 个文件,或者涉及多人协作,或者需要长期维护

动作:

  1. 启动 /prd 模式
  2. 输出结构化文档:
    • 目标 (Goal)
    • 非目标 (Non-Goals) ← 容易被忽略但很重要
    • 用户故事 (User Stories)
    • 验收标准 (Acceptance Criteria)
  3. 生成 SPEC.md 或 ADR.md

可选:如果项目够小,跳过这一步,直接进 Stage 3。


Stage 3: 代码实现(需求已明确时)

触发条件:需求明确,CONTEXT.md 或 SPEC.md 已完成

动作:启用 ponytail 模式

  1. YAGNI 阶梯检查(每写一行代码前):

    Level 1: 只写注释 "// 需要 XXX 功能" → 先停这
    Level 2: 写 stub / mock
    Level 3: 写硬编码值
    Level 4: 写配置
    Level 5: 写完整功能
    Level 6: 过度工程(别到这层)
  2. 代码门槛:只有在满足以下条件时才从 Level 1 往下走:

    • 用户明确说"需要完整实现"
    • 有测试用例需要过
    • 已有 stub 不能满足集成需求
  3. 每个函数前:先回答"这个函数真的需要吗?"

    • 如果不需要 → 只写注释 + ponytail: 标记升级路径
    • 如果需要 → 写最少的代码

Stage 4: 测试驱动(当需要 TDD 时)

触发条件:用户说"先写测试",或项目是库/公共组件

动作:启动 /tdd 模式

  1. 先写失败的测试(red)
  2. 写最少代码让测试过(green)
  3. 重构(refactor)

Stage 5: Git 安全(每次提交前)

触发条件:任何 git push / rebase / force-push

动作:

  1. 列出所有待提交文件
  2. 确认没有包含敏感信息(API key、token、密码)
  3. 确认没有不该提交的产物(node_modules/、dist/、*.log)
  4. 先 commit 再 build — 改源码 → 测试 → commit → build。不可绕过的执行顺序:build 产物的命名基于 git hash,不先 commit 会导致 exe 名与内容不匹配。
  5. build 产物命名规则 — 默认在文件名后追加时间戳 MMDDHHMM,如果当前有 git commit hash,则在时间戳后追加 _<短hash>。
    • 格式:<原名>_MMDDHHMM[_<git短hash>].exe
    • 示例(有 git):ACP学习网站_07011647_abc1234.exe
    • 示例(无 git):ACP学习网站_07011647.exe
    • 时间戳使用 build 执行时的本地时间,确保每次 build 文件名唯一,不会覆盖旧产物。
  6. 让用户确认 再执行破坏性操作

自动阶段判断

IF 需求模糊:
    → Stage 1 (需求澄清)
ELIF 项目 > 2 文件 AND 需要长期维护:
    → Stage 2 (设计文档) → Stage 3 (代码)
ELIF 需求已明确:
    → Stage 3 (代码,用 ponytail)
ELIF 用户说"先写测试":
    → Stage 4 (TDD)

Stage 6: 技能进化(轻量化 SkillOpt 模式)

触发条件:用户纠正了我的输出,或者表达了不满

借鉴自 Microsoft SkillOpt 的轻量化实现:

  1. Trajectory 追踪:记录用户实际想要 vs 我输出的差异
  2. Validation-Gated:用户确认纠正后才更新
  3. Loop 闭环:下次自动用改进后的模式

两种进化方式

方式 A:即时学习(当前会话)

  • 用户说"不对"、"不是这样"、"我想要的是 XX"
  • 立刻问:"请告诉我正确的是什么,我记下来"
  • 本次会话记住,下次自动用改进后的理解

方式 B:持久进化(写 skill)

  • 用 /save-fix 保存本次纠正到 SKILL.md
  • 下次新会话也能用

进化记录格式

<!-- engineering-lite-evolution:
- YYYY-MM-DD: 问题简述 → 根因 → **结论/下次做法**
-->

每条进化记录包含三要素:现象(用户报了什么)→ 根因(为什么)→ 教训(下次怎么做)。只记录有价值的纠正,不是什么都记。


快捷命令

命令 对应阶段 场景
/clarify Stage 1 需求模糊时强制澄清
/spec Stage 2 需要设计文档
/lazy Stage 3 强制 ponytail 模式
/tdd Stage 4 测试驱动开发
/safe Stage 5 安全检查
/learn Stage 6 从本次对话学习改进
/save-fix Stage 6 保存纠正到技能文件

核心原则

  1. 别在需求不明确时写代码 — 写得越多,改得越多
  2. 需求明确后,能不写就不写 — YAGNI Level 1 是你最好的朋友
  3. 每个函数前问自己"真的需要吗" — 不需要就只写注释
  4. 用注释标记升级路径 — ponytail: upgrade to Level X when needed
  5. 事不过三 (Three Strikes Rule) — 同一个问题修改超过 3 次仍未解决,必须回退到初始文件,重新设计方案或尝试不同路径。不要在错误的方向上继续迭代。
  6. 备份-改稿-确认-清除 (Backup-Edit-Confirm-Cleanup) — 改稿机制四步:
    1. 备份原始文件(file.bak 或 archive/)
    2. 进行改动
    3. 等用户确认成功后再继续
    4. 删除备份 不确认不删:有问题时直接回退到备份文件。

与原始技能的关系

本技能是 mattpocock/skills(需求/设计阶段)+ ponytail(代码阶段)的融合版。

原始技能的核心机制保留:

  • grill-with-docs → Stage 1
  • prd → Stage 2
  • ponytail YAGNI → Stage 3
  • /tdd → Stage 4
  • git-safety → Stage 5

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • 提供完整的工程精简开发流程,覆盖需求澄清到代码实现、测试、Git 安全全流程
  • 融合 mattpocock 与 ponytail 成熟实践,具有广泛适用性
Trigger Precision88/100

Areas to improve

  • 缺少显式 When to Use 章节 Reported severity: Minor

    未设置独立 When to Use 章节说明典型使用场景

    Recommendation: 建议增加 When to Use 章节,列举 2-3 个典型使用场景(如小型项目快速启动、团队协作规范等)

Highlights

  • 各阶段触发条件清晰明确,边界定义合理
  • 快捷命令与阶段对应关系完整,便于用户快速调用
Structure and Standards92/100

Areas to improve

  • 文档内容较长 Reported severity: Minor

    skill_body 内容详实但接近长度上限

    Recommendation: 建议适当精简重复说明,或拆分部分内容为引用文件

Highlights

  • Phase 划分清晰,每阶段有明确触发条件和动作
  • 包含端到端示例(如 YAGNI 阶梯、build 产物命名规则)
  • frontmatter 完整,结构规范
Execution Reliability85/100

Highlights

  • 工具来源明确,引用成熟工程实践
  • 覆盖主要异常场景(敏感信息、产物清理、备份机制)
  • 不可逆操作有用户确认机制,可靠性高
Evidence Verifiability (mean of the first four)87/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 96

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.