agent-folder-init
0
总安装量
37
周安装量
安装命令
npx skills add https://github.com/shipshitdev/library --skill agent-folder-init
Agent 安装分布
claude-code
30
codex
26
gemini-cli
25
opencode
25
antigravity
24
cursor
22
Skill 文档
Agent Folder Init
Create a comprehensive .agents/ folder structure for AI-first development workflows.
Purpose
This skill scaffolds a complete AI agent documentation system including:
- Session tracking (daily files)
- Task management
- Coding standards and rules
- Architecture decision records
- Security checklists
- SOPs for common workflows
- Agent config folders (.claude, .codex, .cursor) with commands, rules, and agents
When to Use
Use this skill when:
- Starting a new project that will use AI coding assistants
- Setting up AI-first development workflows
- Migrating an existing project to use structured AI documentation
Usage
Run the scaffold script:
python3 ~/.claude/skills/agent-folder-init/scripts/scaffold.py --help
# Basic usage
python3 ~/.claude/skills/agent-folder-init/scripts/scaffold.py \
--root /path/to/project \
--name "My Project"
# With custom options
python3 ~/.claude/skills/agent-folder-init/scripts/scaffold.py \
--root /path/to/project \
--name "My Project" \
--tech "nextjs,nestjs" \
--allow-outside
Generated Structure
Documentation (.agents/)
.agents/
âââ README.md # Navigation hub
âââ SYSTEM/
â âââ README.md
â âââ RULES.md # Coding standards
â âââ ARCHITECTURE.md # What's implemented
â âââ SUMMARY.md # Current state
â âââ PRD.md # Product Requirements Document
â âââ ENTITIES.md # Entity documentation
â âââ ai/
â â âââ SESSION-QUICK-START.md
â â âââ SESSION-DOCUMENTATION-PROTOCOL.md
â â âââ USER-PREFERENCES.md
â âââ architecture/
â â âââ DECISIONS.md # ADRs
â â âââ PROJECT-MAP.md
â âââ critical/
â â âââ CRITICAL-NEVER-DO.md
â â âââ CROSS-PROJECT-RULES.md
â âââ quality/
â âââ SECURITY-CHECKLIST.md
âââ TASKS/
â âââ README.md
â âââ INBOX.md
âââ SESSIONS/
â âââ README.md
â âââ TEMPLATE.md
âââ SOP/
â âââ README.md
âââ EXAMPLES/
â âââ README.md
âââ FEEDBACK/
âââ README.md
Agent Configs
.claude/
âââ commands/ # Slash commands (project-specific)
â âââ start.md
â âââ end.md
â âââ new-session.md
â âââ commit-summary.md
â âââ code-review.md
â âââ bug.md
â âââ quick-fix.md
â âââ refactor-code.md
â âââ inbox.md
â âââ task.md
â âââ validate.md
â âââ clean.md
âââ agents/ # Specialized agents (project-specific)
â âââ senior-backend-engineer.md
â âââ senior-frontend-engineer.md
âââ skills/ # Project-specific skills
.codex/
âââ commands/
âââ skills/
.cursor/
âââ commands/
Note: Agent configs (agents/, commands/) are copied from the library root (e.g., ~/.claude/agents/) to ensure projects get the latest version. Rules are NOT copied because they’re inherited from ~/.claude/rules/ at the library/personal level – this prevents duplication and ensures all projects use consistent rules.
Root Files
AGENTS.md– Points to.agents/README.mdCLAUDE.md– Claude-specific entry pointCODEX.md– Codex-specific entry point.editorconfig– Editor configuration
Key Patterns
Naming Conventions
- Top-level directories: ALL-CAPS (
SYSTEM/,TASKS/,SESSIONS/) - Files: ALL-CAPS for critical files (
README.md,RULES.md), kebab-case for others
Session Files
- One file per day:
YYYY-MM-DD.md - Multiple sessions same day use Session 1, Session 2, etc. in the same file
Customization
After scaffolding, customize:
SYSTEM/PRD.md– Fill in your product requirements (use with fullstack-workspace-init)SYSTEM/ENTITIES.md– Document your data entitiesSYSTEM/RULES.md– Add project-specific coding standardsSYSTEM/ARCHITECTURE.md– Document your architectureSYSTEM/critical/CRITICAL-NEVER-DO.md– Add project-specific violationsSOP/– Add your standard operating procedures.claude/rules/– Add project-specific rules.claude/commands/– Add project-specific commands
Integration with Other Skills
This skill integrates with:
| Skill | How It Works Together |
|---|---|
fullstack-workspace-init |
Use PRD.md to define requirements before scaffolding |
linter-formatter-init |
Sets up quality tooling in the scaffolded project |
husky-test-coverage |
Enforces test coverage in pre-commit hooks |