skills/dimon94/devflow-file-standards/SKILL.md
File naming conventions, directory structure, and YAML frontmatter standards for CC-DevFlow. Consolidates shared conventions from all agents.
npx skillsauth add aiskillstore/marketplace devflow-file-standardsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Consolidate file naming, directory structure, and format conventions that are shared across multiple agents and commands. This skill does NOT duplicate agent-specific standards.
REQ-\d{3} # e.g., REQ-001, REQ-042, REQ-123
/flow-* commands accept REQ-ID as argumentfeature/REQ-XXX-{slug-title}devflow/requirements/REQ-XXX/orchestration_status.json contains reqId field.claude/scripts/check-prerequisites.shT\d{3} # e.g., T001, T042, T123
- [ ] **T001** [P] Task description
- [ ] **T010** [US1] User story 1 task
[P]: Parallel execution possible[US#]: User story number (e.g., [US1], [US2]).claude/docs/templates/TASKS_TEMPLATE.mddevflow/requirements/REQ-XXX/
├── research/ # /flow-init 输出
│ ├── research.md # consolidate-research.sh 生成
│ ├── tasks.json # generate-research-tasks.sh 生成
│ ├── internal/
│ │ └── codebase-overview.md
│ ├── mcp/ # MCP 服务器调查(可选)
│ └── codebase-tech-analysis.md # /flow-tech 输出
├── PRD.md # /flow-prd 输出 (prd-writer agent)
├── TECH_DESIGN.md # /flow-tech 输出 (tech-architect agent)
├── data-model.md # /flow-tech 输出 (extract-data-model.sh)
├── contracts/ # /flow-tech 输出 (export-contracts.sh)
│ ├── api-users.yaml # OpenAPI contracts
│ └── api-auth.yaml
├── quickstart.md # /flow-tech 输出 (generate-quickstart.sh)
├── UI_PROTOTYPE.html # /flow-ui 输出 (ui-designer agent, 可选)
├── EPIC.md # /flow-epic 输出 (planner agent)
├── TASKS.md # /flow-epic 输出 (planner agent)
├── reviews/ # /flow-qa 输出
│ ├── TEST_PLAN.md # qa-tester agent
│ ├── TEST_REPORT.md # qa-tester agent
│ └── SECURITY_REPORT.md # security-reviewer agent
├── EXECUTION_LOG.md # 事件日志 (所有 flow 命令追加)
├── orchestration_status.json # 状态跟踪 (所有 flow 命令更新)
└── README.md # 工作流指南
### Bugs
devflow/bugs/BUG-XXX/ ├── BUG_ANALYSIS.md # /flow-fix 输出 (bug-analyzer agent) ├── PLAN.md # /flow-fix 输出 (planner agent) ├── TASKS.md # /flow-fix 输出 (planner agent) ├── EXECUTION_LOG.md └── status.json # 类似 orchestration_status.json
### Source
- Created by: `.claude/scripts/create-requirement.sh`
- Template: `.claude/docs/templates/` 目录
- Enforced by: All flow commands
## YAML Frontmatter
### Document Types
#### PRD.md
```yaml
---
reqId: REQ-123
title: User Authentication
version: 1.0.0
createdAt: 2025-10-31T12:34:56Z
updatedAt: 2025-10-31T15:20:30Z
status: approved
author: prd-writer agent
---
---
reqId: REQ-123
version: 1.0.0
architecture: Microservices
techStack:
- Node.js
- PostgreSQL
- Redis
createdAt: 2025-10-31T14:10:00Z
author: tech-architect agent
---
---
reqId: REQ-123
title: User Authentication Epic
version: 1.0.0
estimatedEffort: 5 days
createdAt: 2025-10-31T16:00:00Z
author: planner agent
---
---
reqId: REQ-123
totalTasks: 25
completedTasks: 0
version: 1.0.0
createdAt: 2025-10-31T16:30:00Z
updatedAt: 2025-10-31T16:30:00Z
author: planner agent
---
.claude/scripts/check-prerequisites.sh, .claude/scripts/generate-status-report.sh{
"reqId": "REQ-123",
"title": "User Authentication",
"status": "initialized",
"phase": "planning",
"phase0_complete": false,
"phase1_complete": false,
"completedSteps": [],
"createdAt": "2025-10-31T12:34:56Z",
"updatedAt": "2025-10-31T12:34:56Z"
}
initialized → /flow-init 完成
prd_generation_in_progress → /flow-prd 执行中
prd_generation_failed → /flow-prd 失败(可重试)
prd_complete → /flow-prd 完成
tech_design_in_progress → /flow-tech 执行中
tech_design_failed → /flow-tech 失败
tech_design_complete → /flow-tech 完成
epic_generation_in_progress → /flow-epic 执行中
epic_generation_failed → /flow-epic 失败
epic_complete → /flow-epic 完成
development_in_progress → /flow-dev 执行中
development_complete → /flow-dev 完成
qa_in_progress → /flow-qa 执行中
qa_complete → /flow-qa 完成
released → /flow-release 完成
planning → 需求规划阶段 (init, prd)
design → 技术设计阶段 (tech, ui)
epic_planning → 任务规划阶段 (epic)
implementation → 开发阶段 (dev)
qa → 质量保障阶段 (qa)
release → 发布阶段 (release)
{
"bugId": "BUG-456",
"title": "Fix login timeout",
"status": "initialized",
"phase": "analysis",
"severity": "high",
"createdAt": "2025-10-31T12:34:56Z",
"updatedAt": "2025-10-31T12:34:56Z"
}
critical → 严重,系统不可用
high → 高,核心功能受影响
medium → 中,部分功能受影响
low → 低,轻微问题
/flow-fix commandUPPERCASE_WITH_UNDERSCORES.md # Primary documents (PRD.md, EPIC.md, TASKS.md)
lowercase-with-dashes.md # Supporting documents (data-model.md, quickstart.md)
kebab-case.sh # All bash scripts (check-prerequisites.sh)
kebab-case.ts # All TypeScript scripts (skill-activation-prompt.ts)
lowercase # Top-level (devflow/, research/, contracts/)
kebab-case # Multi-word (codebase-tech-analysis/)
api-{resource}.yaml # OpenAPI 3.0 format
graphql-{schema}.graphql # GraphQL schema
contracts/
├── api-users.yaml # User management API
├── api-auth.yaml # Authentication API
└── graphql-schema.graphql # GraphQL schema (if used)
export-contracts.sh# ✅ Should be committed
devflow/requirements/**/PRD.md
devflow/requirements/**/EPIC.md
devflow/requirements/**/TASKS.md
devflow/requirements/**/orchestration_status.json
# ❌ Should NOT be committed
devflow/requirements/**/.env
devflow/requirements/**/secrets/
devflow/requirements/**/node_modules/
.claude/tsc-cache/
└── {session_id}/
├── edited-files.log # Timestamp:path:repo
└── affected-repos.txt # List of affected repos (e.g., devflow/REQ-123)
This skill does NOT contain agent-specific content standards:
Rationale: Those are agent execution standards (how to generate content), not file format standards (how to name/structure files).
Answer: REQ-\d{3} (e.g., REQ-001, REQ-042, REQ-123)
Answer: devflow/requirements/REQ-XXX/PRD.md
Answer: reqId, title, status, phase, phase0_complete, phase1_complete, completedSteps, createdAt, updatedAt
Answer: api-{resource}.yaml (e.g., api-users.yaml, api-auth.yaml)
Answer: reqId, totalTasks, completedTasks, version, createdAt, updatedAt, author
This skill does NOT contain:
.claude/docs/templates/)This skill ONLY contains:
Rationale: Avoid duplication ("不重不漏" principle). Agents own content standards, this skill owns format standards.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.