‹ 首页

formax-system-prompt-workflow

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

Use when designing, refactoring, or debugging Formax system prompt assembly, system-reminder injection, or skills/deferred-tool prompt exposure semantics; mandatory for any change involving FORMAX_DEFERRED_TOOL_EXPOSURE and request-payload parity checks.

适合你,如果正在开发或维护 Formax 系统提示词工作流

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

怎么用

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

安装此技能后,当你要求设计、重构或调试Formax系统提示词时,Claude会遵循严格的工作流程:阅读合同文档、更新规范、确保助手块临时且不污染历史记录,并运行最小回归测试。它注重保持单一提示配置路径和延迟工具暴露一致性。

什么时候触发

当你要修改Formax系统提示词、注入系统提醒、或调整延迟工具暴露时触发。特别是涉及FORMAX_DEFERRED_TOOL_EXPOSURE或请求负载一致性检查的变更。

装好后可以这样说
Claude会按照工作流程检查合同和代码路径。
Claude会验证一致性并运行测试。
技能原文 SKILL.md作者撰写 · MIT · 5a48573

formax-system-prompt-workflow

Goal

Use this skill when changing system prompt assembly, reminder injection, deferred tool exposure, or skills prompt presentation.

Read First
  • docs/contracts/prompt-tool-exposure-contract.md
  • docs/contracts/skills-contract.md
  • docs/contracts/semantics-contract.md when request-scoped helper blocks affect replay or transcript semantics

Optional working notes:

  • references/parity-checklist.md
  • references/parity-evidence-template.md

These docs are canonical. If stable behavior changes, update them before or with code.

Invariants
  1. Keep a single prompt-profile path.
  2. do not reintroduce promptProfile, lite, or similar profile branches
  3. Treat FORMAX_DEFERRED_TOOL_EXPOSURE as a linked behavior bundle.
  4. prompt variant, tools exposure style, and skills presentation must stay aligned
  5. Keep helper blocks request-scoped and ephemeral.
  6. injected <system-reminder> blocks and deferred helper blocks must not pollute persisted long-term history
  7. Only claim capabilities that Formax runtime actually implements.
  8. do not add CC-like capability prose before the runtime supports it
Code Map
  • packages/core/src/prompts/system.ts: system prompt text, variant selection, capability gates
  • packages/core/src/features/repl/controller/send/sendMainTurn.ts: per-turn injected block order and REPL assembly
  • packages/core/src/tools/runtime/deferredToolExposureResolver.ts: deferred tools exposure and helper-block content
  • packages/core/src/tools/modules/skill/index.ts: skill tool description shaping and skills reminder text
  • packages/core/src/chat/engine.ts: request assembly and injected-block persistence boundaries
  • Cross-entrypoint mirrors when semantics move:
  • packages/core/src/app-server/turnRunner.ts
  • packages/core/src/sdk/query/runner.ts
  • scripts/repl-request-preview.ts: quick dry-run payload preview without live network calls
Deferred Exposure Checklist (FORMAX_DEFERRED_TOOL_EXPOSURE=1)
  • system prompt variant resolves to deferred_aligned
  • request contains <available-deferred-tools> helper content
  • skills availability is delivered as a skills system-reminder helper block
  • tool list starts from deferred exposure resolver output (ToolSearch first)
  • tool-call chain remains valid: ToolSearch(select:<tool>) -> <tool>
Minimal Workflow
  1. Classify the change first: all-mode or deferred-only (FORMAX_DEFERRED_TOOL_EXPOSURE=1).
  2. Update the canonical contract and prompt text first, then change resolver / wiring code.
  3. Keep helper blocks request-scoped and ephemeral; do not let them leak into persisted history.
  4. If semantics move, check REPL, app-server, and SDK paths together before calling the change done.
  5. Run the minimum regression set below, then use request preview only as evidence, not as the only validation.
Minimum Regression
  • bun run test -- packages/core/src/prompts/system.test.ts packages/core/src/tools/runtime/deferredToolExposureResolver.test.ts packages/core/src/features/repl/controller/send/sendMainTurn.test.ts
  • bun run test -- packages/core/src/chat/engine.test.ts packages/core/src/config/settings/resolve.test.ts packages/core/src/sdk/query.test.ts packages/core/src/sdk/query.options-alignment.test.ts
  • bun run test -- packages/core/src/app-server/turnRunner.test.ts when app-server request assembly changes
  • bun run type-check
  • bun run request:preview -- --text "执行下 pwd" --deferred for quick payload inspection when deferred exposure is involved
Guardrails
  • Do not reintroduce prompt-profile branches (lite, full, promptProfile, or equivalents).
  • Do not add new environment toggles for prompt capability sections; use code-level capability switches in system.ts.
  • Do not loosen permissions or allow-list behavior just to make parity demos pass.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

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