‹ 首页

formax-dev-loop-workflow

@yusifeng · 收录于 5 天前 · 上游提交 3 周前

Use when working on Formax code changes and you need a disciplined dev loop: keep a single mainline task, avoid scope drift, run only targeted tests (no coverage), avoid partial staging (MM), run mandatory review before commit, include an incremental optimization check, and keep commits small and reviewable.

适合你,如果需要在 Formax 项目上保持严谨的开发流程

/ 通过 npx 安装 校验哈希
npx oh-my-skill add yusifeng/formax/formax-dev-loop-workflow
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- yusifeng/formax/formax-dev-loop-workflow
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify yusifeng/formax/formax-dev-loop-workflow
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
192GitHub stars
~592上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 5a48573 · 表述以原文为准
它做什么

Claude 会按固定流程工作:每次只做一个任务,先写测试再实现,实现后检查能否简化代码,只运行针对性测试,提交前必须审查,保持提交小而清晰。

什么时候触发

当你需要在 Formax 代码上执行有纪律的开发循环时触发,通常在你要求开始编码或测试时。

装好后可以这样说
Claude 会挑选一个主线任务并执行完整流程。
技能原文 SKILL.md作者撰写 · MIT · 5a48573

Formax Dev Loop (Mainline Discipline)

Default loop (repeat per TODO item)

1) Pick one mainline item and finish it end-to-end before starting another.

  • If a new idea appears mid-flight, write it down in a backlog note and continue the mainline.

2) Write/adjust tests first to lock behavior (when feasible).

3) Implement the smallest change that satisfies the item.

4) Incremental optimization check (required)

  • After implementation, do a quick pass:
  • Is there newly-dead/unused logic introduced by this increment?
  • Is there a low-risk simplification that reduces branching/duplication?
  • If yes, include a small optimization in the same item (no scope drift, no behavior change).
  • If no, explicitly proceed without optimization.

5) Run only targeted tests (never bun run test:coverage unless explicitly asked).

  • Preferred: bun run test -- <changed-test-files...>
  • Helper (repo): bun run test:changed
  • Use default (staged only) for the commit you are about to make.
  • Use bun run test:changed -- --all only when you intentionally want staged + unstaged + untracked.

6) Pre-commit hygiene

  • Avoid partial staging (“MM” state). If needed, check with:
  • bun run check:partial-stage
  • Run review before every commit using AGENTS.md -> Review Profile (Single Source of Truth).
  • If review returns findings: fix -> re-run targeted tests -> re-run review.

7) Commit

  • Keep it small (2–4 files ideally, unless refactor forces more).
  • Prefer one concern per commit (tests + implementation together for that concern).
Guardrails (Formax-specific)
  • Do not fix unrelated failures mid-loop unless they block the mainline.
  • If a command would usually be run with pipes/redirections for convenience, prefer running it plain and rely on Formax’s own output truncation/Expand UI.
  • Don’t “clean up” formatting/copy/colors/spacing unless explicitly requested or required for parity.
Quick commands
# Detect partial staging (“MM”)
bun run check:partial-stage

# Run related tests for staged changes
bun run test:changed -- --dry-run
bun run test:changed

# Include unstaged + untracked (when explicitly intended)
bun run test:changed -- --all

# Required before commit (review profile)
# See AGENTS.md -> "Review Profile (Single Source of Truth)"
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。