| name | onboard-project |
| description | Make sure to use this skill whenever the user mentions setting up a fresh project, cloning a new repo, fixing agent blindness, establishing baselines, or asking 'what is this codebase'. It ensures the agent has the necessary architectural context and rules tailored to the tech stack. |
Project Onboarding Protocol
The .agent folder serves as the "brain" for future sessions. If the rules and architectural understanding established here are wrong or too generic, all future agent interactions in this repository will fail, be hallucinatory, or bloat the context window. Your goal here is to establish a rock-solid, concise baseline for this specific codebase.
Follow these steps exactly, completing them one by one.
Step 1: Establish Context & Architecture Documentation
Do not guess. Ground your analysis in actual dependencies.
- Run a deep analysis of the codebase by explicitly checking anchor files (e.g.,
package.json, .env.example, composer.json, docker-compose.yml, etc.).
- Create an
ARCHITECTURE.md file in the project root.
- The
ARCHITECTURE.md must be comprehensive and include:
- System Overview: High-level map of the project.
- Data Flow & Storage: Primary databases, APIs, and caching.
- Key Directories: What lives where.
- Security/Auth boundaries: How authentication is handled.
Step 2: Adapt Agent Rules
The .agent/rules folder contains baseline markdown rules. You must adapt them to the specific insights gained from the ARCHITECTURE.md. Keep your outputs concise and structured—use the existing markdown files in .agent/rules/ as your structural reference templates rather than writing sprawling paragraphs.
- Rewrite
10_project.md to capture the project's vision, goals, users, and constraints.
- Rewrite
20_stack.md to document the precise technologies used (e.g., Vanilla JS vs Vue vs React, REST vs GraphQL, specific databases).
- Rewrite
60_infrastructure.md to reflect deployment targets (e.g., Vercel, AWS, Forge) and CI/CD setups.
- Iterate through the remaining rules in
.agent/rules/. Delete any rules that do strictly not apply to this stack (e.g., if the project uses Vanilla JS, delete 21_standards_laravel.md, 22_standards_nuxt.md, etc.).
Step 3: Design Rule Adaptation (If Frontend Exists)
If the project includes a frontend or user interface:
- Examine the current design assets (CSS files, Tailwind config, font imports).
- Update
.agent/rules/11_design.md to capture the project's design system, including:
- Typography and font families.
- Color palettes and themes.
- Layout behaviors and specific styling paradigms (e.g., Swiss Brutalist, Utility-first Tailwind, Custom CSS variables).
Step 4: Validate Workflows
Review the .agent/workflows/ directory. Ensure that none of the workflow scripts contain hardcoded references or assumptions that conflict with the new stack.
- For example: Check if an implementation workflow assumes
npm test when the project actually uses pnpm, or if it attempts to compile frontend assets when it's a backend-only API.
Step 5: Save State
- If the user uses git, prompt them to review the changes and commit the onboarding setup.
Completion
Once these 5 steps are complete, state that the project is successfully onboarded and ready for specialized workflows (like /plan or /review-gstack).