Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add shipshitdev/library --skill "agent-folder-init"
Install specific skill from multi-skill repository
# Description
Initialize a comprehensive .agent/ folder structure for AI-first development. Use this skill when starting a new project that needs AI agent documentation, session tracking, task management, and coding standards. Generates full structure based on proven patterns from production projects.
# SKILL.md
name: agent-folder-init
description: Initialize a comprehensive .agent/ folder structure for AI-first development. Use this skill when starting a new project that needs AI agent documentation, session tracking, task management, and coding standards. Generates full structure based on proven patterns from production projects.
Agent Folder Init
Create a comprehensive .agent/ 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 (.agent/)
.agent/
βββ 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.agent/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 |
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.