‹ 首页

formax-repomix-handoff-workflow

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

Use when preparing a Formax code handoff: selecting files, generating repomix bundles, and writing a high-quality prompt for WebGPT or another coding agent with clear constraints and validation scope.

适合你,如果需要在项目间或与AI助手高效交接代码上下文

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

怎么用

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

它会帮你选文件、生成 repomix 代码包,并写一份清晰的交接提示词给其他 AI(如 WebGPT),包含约束和验收条件。

什么时候触发

当你需要把 Formax 项目代码交接给另一个 AI 时,例如准备最小化的代码包和高质量提示词。

装好后可以这样说
生成 minimal 级别的包。
带架构说明。
运行验证脚本。
技能原文 SKILL.md作者撰写 · MIT · 5a48573

formax-repomix-handoff-workflow

Goal

Create a clean handoff package for another AI with:

  • the smallest correct repomix bundle
  • a prompt that matches the target environment
  • explicit acceptance criteria and non-goals
  • predictable artifact naming + validation (so uploads stay consistent)
Where to change what
  • All handoff artifacts live in one folder: repomix-output/
  • Bundle output: repomix-output/repomix-<topic>-<tier>.txt
  • Handoff prompt: repomix-output/<topic>-handoff-prompt.md
  • File manifest notes: repomix-output/repomix-<topic>-files.md
  • Template references: references/prompt-templates.md
Required hygiene: each new pack run must clear previous files in repomix-output/ first, so users can upload that folder as-is without manual file picking.
Pack tiers (default taxonomy)

Use exactly one tier label in bundle filename:

  • minimal: changed runtime files + direct dependencies + adjacent tests.
  • core: minimal + only critical contract/design docs needed for intent.
  • full: broad context pack for deep investigations (cross-subsystem docs/tests).

Example names:

  • repomix-topic-minimal.txt
  • repomix-topic-core.txt
  • repomix-topic-full.txt
Patterns
  1. Classify target runtime first
  2. Static consumer (e.g., WebGPT): cannot run local commands or tests.
  3. Executable agent (repo access): can run local commands/tests.
  1. Pick a pack tier first (minimal / core / full)
  2. Default to minimal.
  3. Upgrade to core only when architecture/contracts matter.
  4. Use full only when root cause plausibly spans multiple subsystems.
  1. Build the include set for that tier
  2. Include changed runtime files + direct dependencies + adjacent tests.
  3. Include only docs needed for intent/constraints at the chosen tier.
  4. Avoid unrelated folders to keep context small.
  1. Pack with deterministic command (single folder, auto-clean)
bunx repomix . \
  --style plain \
  --no-git-sort-by-changes \
  -o repomix-output/repomix-<topic>-<tier>.txt \
  --include "<comma-separated-file-list>"

Or use the helper script:

bash .codex/skills/formax-repomix-handoff-workflow/scripts/build-repomix.sh \
  repomix-<topic>-<tier>.txt \
  "<comma-separated-file-list>"

The helper script will:

  • create repomix-output/ if missing
  • delete previous files under repomix-output/ (except .gitkeep)
  • write the new bundle into repomix-output/
  1. Write prompt + file manifest with naming convention
  2. Prompt: repomix-output/<topic>-handoff-prompt.md
  3. Manifest: repomix-output/repomix-<topic>-files.md
  4. Always use repo-relative paths in prompt + manifest (no machine absolute paths).
  1. Write prompt with explicit boundaries
  2. State known symptoms.
  3. State hard constraints (what must not change).
  4. Define deliverables (root cause model, options, recommended plan, test/validation matrix).
  5. Include acceptance criteria with observable assertions.
  1. Run artifact validation (required)
bash .codex/skills/formax-repomix-handoff-workflow/scripts/check-handoff-artifacts.sh \
  repomix-<topic>-<tier>.txt \
  <topic>

This check enforces:

  • Bundle/prompt/manifest files all exist.
  • Prompt and manifest reference the current bundle name.
  • Manifest references the prompt filename.
  • Prompt + manifest do not contain local absolute paths.
  1. Sanity-check before handoff
  2. repomix-output/ only contains current-round artifacts.
  3. Bundle exists and includes the expected files.
  4. Prompt has no impossible instructions for the target runtime.
  5. Prompt does not ask static consumers to run commands.
  6. Naming is topic-driven and consistent across all three artifacts.

See references/prompt-templates.md for copy-ready templates.

Tests to update
  • No repository tests required for creating the handoff itself.
  • If target is executable, include a suggested minimal test list in the handoff prompt.
Guardrails
  • Never include bun run test:coverage in a static-consumer prompt.
  • Never assume the other AI can read files outside the provided bundle unless explicitly attached.
  • Keep asks decision-oriented first (root cause/options) before patch implementation.
  • Prefer concrete acceptance checks over vague goals.
  • Avoid mixing unrelated bugfixes into one handoff package.
  • Never leak machine absolute paths (e.g., /Users/...) in prompt/manifest.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

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