agent-folder-init
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.
What this skill does
# 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 lean AI agent documentation system including:
- Session tracking (daily files in `.agents/SESSIONS/`)
- Durable project context in `.agents/memory/` (one topic per file)
- 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:
```bash
python3 scripts/scaffold.py --help
# Basic usage
python3 scripts/scaffold.py \
--root /path/to/project \
--name "My Project"
# With custom options
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
├── memory/
│ └── README.md # Source of truth for durable project facts
└── SESSIONS/
├── README.md # Session format guide
└── TEMPLATE.md # Session file template
```
**Rules and coding standards** go in the repo's agent entry file (`AGENTS.md`, `CLAUDE.md`, or `CODEX.md`) and the user's platform-level instruction file — not inside `.agents/`.
**Task tracking** uses GitHub Issues (`gh issue list`, `gh issue create`) — not local task files.
### 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
### memory/ Files
- One topic per file: `memory/architecture.md`, `memory/deployment.md`, `memory/entities.md`, etc.
- Every file carries a `last_verified: YYYY-MM-DD` front-matter field.
- Transient or short-lived facts add `status: temporary`.
### Session Files
- **One file per day**: `SESSIONS/YYYY-MM-DD.md`
- Multiple sessions same day use Session 1, Session 2, etc. in the same file.
## Customization
After scaffolding, customize:
1. Root agent entry file - Add project-specific coding standards and "never do" rules
2. `.agents/memory/architecture.md` - Document your architecture decisions
3. `.agents/memory/entities.md` - Document your data entities
4. `.agents/memory/deployment.md` - Document deployment steps and gotchas
5. GitHub Issues - Create issues for tasks (`gh issue create`)
6. `.claude/rules/` - Add project-specific rule files
7. `.claude/commands/` - Add project-specific slash 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 |
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.