一键导入
code-to-spec
Reverse-engineers existing behavior into a grounded spec.md. Use when the user wants to document current behavior instead of changing it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reverse-engineers existing behavior into a grounded spec.md. Use when the user wants to document current behavior instead of changing it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-to-spec |
| description | Reverse-engineers existing behavior into a grounded spec.md. Use when the user wants to document current behavior instead of changing it. |
Use this skill for requests like document existing completion ranking, reverse spec the regex-literal lexer state, or document current behavior of brace matching.
Inputs: a brownfield capability description in $ARGUMENTS; existing code, tests, generated sources, configs, docs; optional path/symbol/package hints.
.specify/ exists, produce the canonical Spec Kit spec.md using .specify/templates/spec-template.md.docs/specs/<feature-slug>/spec.md using the structure in this skill.Rules:
spec.md in place rather than duplicating it.api.json and https://phel-lang.org/; verify grammar/PSI facts against Phel.flex, Phel.bnf, and the generated code in src/main/gen/.Unknowns & Questions or are labeled explicit assumptions.observed, implied by, appears to, not observable in code./workflow.team-run analysis <scope> before synthesizing.Workflow:
plugin.xml registrations for the surface./workflow.team-run analysis <scope> and use its evidence in addition to direct inspection.evals/eval_template.md.evals/grader_prompt.md.structure >= 0.9, grounding >= 0.95, behavior_safety >= 0.9 when grammar/PSI/threading behavior is involved, overall >= 0.9, zero high-severity issues.Unknowns & Questions, and report a safe fail rather than guessing.spec.md.Diagnoses bugs, regressions, flaky behavior, and failures before fixes are proposed. Use when the user asks to debug, investigate, or find root cause.
Runs the repo's full implementation cycle with approval gates, analysis, delivery, and remediation. Use when the user wants to implement or change behavior in the plugin.