con un clic
bootstrap
Initialize .docent/ directory structure and configuration for a new project
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Initialize .docent/ directory structure and configuration for a new project
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Conduct thorough code reviews for pull requests and pre-commit changes
Run comprehensive project health checks including code quality, documentation, git status, and project structure
Check CI/CD workflow status and troubleshoot failing checks in GitHub Actions
Comprehensive guide for AI agents on proactive documentation capture using /docent:tell
Migrate a docent v0.9 project to v1.0 skills-based architecture
Review journal entries and extract valuable knowledge into formal documentation
Basado en la clasificación ocupacional SOC
| name | bootstrap |
| description | Initialize .docent/ directory structure and configuration for a new project |
| group | docent |
| keywords | ["setup","initialization","configuration","bootstrap","init","setup project"] |
| version | 1.0.0 |
| author | docent |
This runbook initializes a new project with docent's directory structure and configuration.
Creates the .docent/ directory structure, config file, and initial documentation scaffolding for a project. This runbook should be invoked when a user wants to set up docent for the first time.
.docent/ directoryAction: Verify if .docent/ directory already exists
if [ -d ".docent" ]; then
echo "⚠️ .docent/ directory already exists"
fi
Decision Point:
Action: Detect project type, languages, and frameworks to inform template selection
Look for:
package.json → Node.js/TypeScript projectCargo.toml → Rust projectpyproject.toml or setup.py → Python projectgo.mod → Go project.git/ → Git repositoryGather information:
Action: Create the standard .docent/ directory structure
mkdir -p .docent
mkdir -p .docent/templates
mkdir -p .docent/runbooks
mkdir -p .docent/journals
mkdir -p .docent/sessions
mkdir -p .docent/notes
mkdir -p .docent/projects
mkdir -p .docent/decisions
mkdir -p .docent/proposals
Expected result: All directories created successfully
Action: Generate .docent/config.yaml with defaults
# docent configuration
root: .docent
# Paths to search when using /docent:ask
search_paths:
- .docent
- docs # Include general project docs if they exist
# Projects for issue filing (optional)
projects:
# Example:
# my-project:
# repo: user/my-project
Customization:
docs/ directory exists, include it in search_pathsAction: Create .docent/.gitignore to exclude certain files
# Exclude journals and sessions (personal work logs)
journals/
sessions/
# Exclude temporary files
*.tmp
*.bak
*~
Rationale: Journals and sessions are personal/ephemeral, not for version control
Action: Create .docent/README.md with getting started information
# Docent Knowledge Base
This directory is managed by docent, a documentation intelligence system.
## Structure
- `templates/` - Custom templates (override bundled templates)
- `runbooks/` - Custom runbooks (override bundled runbooks)
- `journals/` - Work journals (gitignored)
- `sessions/` - Agent session logs (gitignored)
- `notes/` - General notes and knowledge capture
- `projects/` - Project tracking documents
- `decisions/` - Architecture Decision Records (ADRs)
- `proposals/` - RFCs and PRDs
## Usage
- `/docent:ask [query]` - Search all documentation
- `/docent:tell [statement]` - Write/update documentation
- `/docent:act [directive]` - Execute runbooks
- `/docent:start` - List available templates and runbooks
## Configuration
Edit `config.yaml` to customize search paths and project settings.
Decision Point: Ask user if they want to apply any starter templates
Options:
If user wants templates:
/docent:act create journal entry to start a journal/docent:act create project to set up project tracking/docent:act create ADR for architecture decisionsAction: Confirm all files and directories were created successfully
Checklist:
.docent/ directory existsconfig.yaml is valid YAML.gitignore existsREADME.md createdIf any checks fail: Report specific failure and provide fix instructions
Action: Provide confirmation and next steps
Success Message:
✅ docent initialized successfully!
Created:
.docent/
├── config.yaml # Configuration
├── .gitignore # Excluded files
├── README.md # Getting started guide
├── templates/ # Custom templates
├── runbooks/ # Custom runbooks
├── journals/ # Work journals
├── sessions/ # Agent sessions
├── notes/ # General notes
├── projects/ # Project tracking
├── decisions/ # ADRs
└── proposals/ # RFCs and PRDs
Next steps:
1. Run `/docent:start` to see available templates and runbooks
2. Use `/docent:ask getting started` to learn more
3. Start capturing knowledge with `/docent:tell`
Configuration can be customized in .docent/config.yaml
If: Cannot create .docent/ directory
Fix: Check write permissions in current directory
ls -ld .
# Should show write permission for current user
If: .docent/ exists and user didn't force
Fix: Offer to:
.docent.backup.TIMESTAMP/If: Git operations fail
Fix: Continue without git integration, skip project detection from remotes
After completion:
.docent/config.yaml is parseable as YAML/docent:start successfullyAfter bootstrapping docent, you may want to configure your AI agent to automatically initialize docent at the start of each session. This ensures agents always have access to project context.
Add the following section to your project's .claude/CLAUDE.md file:
## Session Initialization
**CRITICAL:** At the start of NEW sessions and after COMPACTION, you MUST initialize docent context as your FIRST ACTION before any other work.
### Initialization Command
Immediately run:
\`\`\`
docent context
\`\`\`
Or explicitly request: "read the docent://meta/context resource"
### When to Initialize
- At the beginning of a new session (context window is empty)
- After a `/compact` operation (context was reset)
- When the user explicitly requests it
### When NOT to Initialize
- When resuming with `claude --continue` (init content is already in context)
- When init content is visible earlier in the conversation
### What This Provides
- Available resources (guides, runbooks, standards, templates)
- Journal workflow instructions (capture → resume pattern)
- Project info and conventions
- Quick reference for common tasks
For user-level initialization (applies to all projects), add the same instructions to ~/.claude/CLAUDE.md instead of .claude/CLAUDE.md.
Different agents have different initialization mechanisms. Consult your agent's documentation for:
The key concept: Invoke /docent:start at the beginning of each session to load project context.