backtocimacoppi/praxis/docs-from-code
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
从代码反推需求文档(L1 补写)的通用方法论 skill。任何项目里需要为已有代码补写需求文档时使用。提供 7 步操作流程、前后端代码阅读重点、归档使用规则、不确定信息处理、需求文档模板。项目特定约定(目录结构、版本制、命名规则)见该项目自己的项目级补丁 skill。触发词:"补写需求文档"、"从代码反推"、"L1 补写"、"反推 L1"。
Install
npx vskill@latest install backtocimacoppi/praxis/docs-from-codeSKILL.md
从代码反推需求文档(L1 补写)
项目特定约定(目录结构、版本制、命名规则)优先参考该项目自己的项目级补丁 skill(见templates/项目级补丁模板/)。本 skill 只提供通用方法论。
1. 操作流程
补写 <项目>/docs/01-需求/ 时,按以下顺序操作:
2. 代码阅读重点
前端
- 页面名称与层级、tab 与分包结构
- 服务调用名称、按钮文案
- 空状态 / 错误状态处理、页面跳转关系
后端
- Controller 对外能力
- 枚举体现的状态和值域
- Biz / Service 中的规则与限制
- 权限校验、状态流转、外部依赖
3. 归档使用规则
可以用归档补充:模块命名、业务意图、代码中不明显的边界规则
不能用归档:覆盖代码事实、把旧方案当成当前事实
4. 不确定信息处理
- 回到代码继续验证
- 用归档做交叉核对
- 仍无法确认 → 写入任务底稿的「待确认」清单,不得混入正式 L1
5. 需求文档推荐模板
代码只能反推候选业务语义。正式 L1 只保留裁决后的当前需求;来源、置信度、实现状态和“待确认”统一留在任务底稿。若意图仍未闭合,交付候选底稿而不是缩水版正式 L1。
每个模块的编号 README(例如 01-xx-00-README.md)或模块说明文档推荐章节:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docs-from-code/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/backtocimacoppi/praxis/docs-from-code)