| name | agent-folder-init |
| description | Add or repair .agents/ project context for an existing repo. Use for AI agent documentation, session tracking, task management, and coding standards; do not use as the primary new-product scaffold. |
| metadata | {"version":"1.0.0","tags":"agents, setup, documentation"} |
Agent Folder Init
Create a comprehensive .agents/ folder structure for AI-first development workflows.
Contract
Inputs:
- Existing project root
- Project name and primary tech stack
- Agent platforms to support: Claude Code, Codex, Cursor, or all
Outputs:
.agents/ documentation structure
- Root agent entry files such as
AGENTS.md, CLAUDE.md, and CODEX.md
- Summary of files created and files skipped because they already existed
Creates/Modifies:
.agents/, .claude/, .codex/, .cursor/, and root agent entry files
- Does not create application source code
External Side Effects:
- None beyond local file writes
Confirmation Required:
- Before overwriting existing agent docs or config files
- Before writing outside the current workspace
Delegates To:
project-init-orchestrator when starting a new product repo
fullstack-workspace-init / npx @shipshitdev/v0 when a new Shipshit.dev product should be scaffolded
agent-config-audit after generation to detect drift or stale config
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:
- Adding AI coding-assistant context to an existing project
- Setting up AI-first development workflows
- Migrating an existing project to use structured AI documentation
For new Shipshit.dev product repos, prefer project-init-orchestrator, which
routes to npx @shipshitdev/v0 and includes the standard .agents, .claude,
and .codex setup.
Usage
Run the scaffold script:
python3 scripts/scaffold.py --help
python3 scripts/scaffold.py \
--root /path/to/project \
--name "My Project"
python3 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 installed library bundle so projects get the latest version. Rules are not copied because they are expected to be managed at the user or repo level to avoid duplication and drift.
Root Files
AGENTS.md - Points to .agents/README.md
CLAUDE.md - Claude-specific entry point
CODEX.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 entities
SYSTEM/RULES.md - Add project-specific coding standards
SYSTEM/ARCHITECTURE.md - Document your architecture
SYSTEM/critical/CRITICAL-NEVER-DO.md - Add project-specific violations
SOP/ - 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 |
|---|
project-init-orchestrator | Routes new product requests to v0 before lower-level setup |
fullstack-workspace-init | Uses v0 for new Shipshit.dev product workspaces |
linter-formatter-init | Sets up quality tooling in the scaffolded project |
husky-test-coverage | Enforces test coverage in pre-commit hooks |