Guide Scaffolding Skill
This skill creates structured guides, adapting format to match complexity.
When to Use
Trigger when user says things like:
- "Create a guide for X"
- "Scaffold a deployment guide for X"
- "New guide for [AppName]"
- "Create documentation for setting up X"
- "Write a how-to for X"
Execution Strategy
This skill adapts to available tooling. Check for subagents before starting:
1. Check .claude/agents/ directory (or run /agents) for available subagents
2. Identify agents matching needed capabilities
3. Delegate to agents when available, otherwise execute inline
Capability Matching
| Phase |
Capability Needed |
Agent Characteristics |
Fallback |
| Research |
Read-only codebase analysis |
disallowedTools includes Write/Edit; description mentions "research", "patterns", or "existing" |
Inline Glob, Grep, Read |
| Vendor verification |
Web search and fetch |
Tools include WebSearch, WebFetch |
Inline WebSearch, WebFetch |
| Writing |
Documentation creation |
Tools include Write, Edit; description mentions "documentation", "guides", or "writing" |
Inline Write tool |
Delegation Benefits
When suitable agents exist:
- Isolated context - Research doesn't consume main conversation tokens
- Specialized prompts - Agents have domain-specific instructions
- Parallel execution - Multiple research tasks can run simultaneously
No Agents Available
If no subagents match needed capabilities, execute all phases inline using standard tools. This skill is fully functional without subagents.
Step 0: Research Existing Patterns
Before creating any files, research existing guides and verify technical content.
Delegation Check
Per the Execution Strategy above:
- Check for a read-only research agent (description mentions "research", "patterns", or "existing"; has
disallowedTools: Write, Edit)
- If found → delegate research tasks to that agent
- If not found → execute research inline as described below
Research Tasks (inline or delegated)
Search for related guides:
- Use Glob/Grep to find guides for similar services (e.g., if creating a Mailgun guide, search for existing Mailgun configurations)
- Check the workspace's docs, runbooks, and operations folders for relevant
patterns
- Look for guides that configure the same tools or services
What to learn from existing guides:
| Copy from existing guides |
Verify independently |
| Format and structure |
Current vendor UI paths |
| Callout style and placement |
Latest best practices |
| Checkbox granularity |
New features or options |
| Verification patterns |
Security recommendations |
| Section ordering |
Deprecated settings |
| Lessons learned / gotchas |
- |
When to deviate from existing guides:
- Vendor has released new recommended approach
- Existing guide has a known issue or workaround that's been fixed
- New guide covers a different use case requiring different steps
- Security best practices have evolved
When deviating, flag potential updates to the reference guide for user review.
Web service accuracy:
- Web service UIs change frequently; existing guides represent "last known working" configuration
- Always include verification steps so users can confirm they're in the right place
- If UI paths have changed significantly, flag potential reference guide updates for user review
Reference guide discovery by topic:
| Topic |
Search For |
Use for |
| Best practices |
best-practices, standards, policy |
Policies, patterns, standards to follow |
| Secrets management |
.env.example, secrets, key rotation |
Environment file pattern, key rotation |
| DNS and tunnels |
dns, tunnel, reverse proxy |
DNS record format, ingress, verification flow |
| Email delivery |
smtp, mail, email infrastructure |
MTA config, per-server setup pattern |
| Updates |
unattended upgrades, release tracking, dependency updates |
Fleet-wide update conventions |
| Backups |
backup, restore, retention |
Storage lifecycle, backup script patterns |
Step 1: Assess Complexity
Before creating any files, evaluate the guide requirements:
Simple Format (single file)
Use when ALL of these are true:
- Single, focused task or procedure
- Fewer than ~15 actionable steps
- No new infrastructure provisioning
- No ongoing maintenance requirements
- Can be completed in one session
Complex Format (multi-file)
Use when ANY of these are true:
- Deploying a new application or service
- Creating new VMs, containers, or cloud resources
- Configuring multiple integrated services
- Requires backup or monitoring setup
- Has ongoing maintenance procedures
- More than 15 steps across multiple phases
Step 2: Determine Output Location
| Purpose |
Location |
| Cloud/VM deployment |
docs/[platform]/[app-name]/ or the workspace's existing deployment-docs area |
| Self-hosted infrastructure |
docs/infrastructure/[app-name]/ or the workspace's existing infrastructure area |
| Best practice implementation |
docs/best-practices/[topic-slug]/ |
| Project-specific |
Projects/[ProjectName]/guides/ |
| Educational |
Education/[Topic]/ |
| General purpose |
Ask user for preferred location |
Step 3: Determine Inventory Requirements
Include inventory steps ONLY when:
- Deploying to Proxmox VMs or LXC containers
- Deploying to AWS, GCP, or other cloud instances tracked in inventory
- Installing software that exposes ports on tracked infrastructure
Inventory location: use the workspace's existing infrastructure inventory
file, if one exists.
Skip inventory steps when:
- Local development guides
- Third-party/SaaS configuration
- Educational or theoretical guides
- Infrastructure not tracked in the inventory
Step 4: Select Phases (Complex Format Only)
All phases are OPTIONAL. Select only what's needed:
| Phase |
Include When |
| Overview & Planning |
Complex deployments with architectural decisions |
| Infrastructure/VM Setup |
Creating new VMs or cloud resources |
| Networking Configuration |
Custom networking, VPCs, tunnels |
| Install Dependencies |
Software prerequisites needed |
| Deploy Application |
Core application deployment |
| Configure Reverse Proxy |
Public-facing services |
| Configure Authentication |
OAuth, SSO, user management |
| Configure Backups |
Data persistence requirements |
| Configure Monitoring |
Production services |
| Post-Deployment |
Multi-step deployments needing verification |
| Ongoing Maintenance |
Services requiring regular upkeep |
Step 5: Create Files
Delegation Check
Per the Execution Strategy above:
- Check for a documentation writing agent (tools include Write, Edit; description mentions "documentation", "guides", or "writing")
- If found → delegate file creation to that agent with context from Steps 0-4
- If not found → create files inline as described below
Simple Format
Create single file at chosen location: [Guide Title].md
Use template from templates.md - Simple Guide Template
Complex Format
Create structure:
[AppName]/
├── STATUS.md ← Operational dashboard (scaffolded with placeholders)
└── Guide/
├── 1. [First Phase].md
├── 2. [Second Phase].md
└── ...
Files to create:
- STATUS.md - Use template from templates.md - STATUS.md Template
- Scaffold with placeholder content
- Update during/after deployment with actual values
- Guide/ files - Use templates from templates.md - Complex Guide Templates
Conventions (All Formats)
- Checklists: Use
- [ ] for every actionable step
- Code blocks: Always specify language
- Verification: Include verification after major operations
- Callouts (Obsidian syntax):
> [!important] for critical steps
> [!note] for helpful context
> [!warning] for dangerous operations
Complex Format Additional Conventions
- File naming:
[N]. [Phase Name].md (numbered sequentially)
- Navigation: Start each file with
**Previous:** [[X]] and end with **Next:** [[Y]]
Templates
See references/templates.md for markdown templates.
Reference Examples
Simple guides:
docs/cloud/setup/lock-down-ssh.md
Complex guides (validated through deployment):
docs/application-migration/ - Full application deployment with email, backups, and DNS
docs/email-infrastructure/ - Multi-server infrastructure with DNS and MTA config
docs/unattended-upgrades/ - Fleet-wide configuration
docs/cloud-app/ - Setup guide with multiple phases
docs/best-practices/remove-hardcoded-secrets/ - Best-practice implementation with multi-host deployment
[!important] Reference Guides for Format, Verify Content Independently
When creating a new guide that overlaps with an existing one (e.g., Mailgun setup, Cloudflare DNS):
- Read existing guides for format, structure, and lessons learned
- Verify technical content against current vendor documentation
- Flag potential updates to reference guides for user review if they appear outdated
1---2name: new-guide3description: Scaffolds guides and runbooks. Use when user asks to create a deployment guide, how-to guide, setup documentation, or runbook. Automatically determines appropriate format (simple single-file or complex multi-file) based on scope.4---56# Guide Scaffolding Skill78This skill creates structured guides, adapting format to match complexity.910## When to Use1112Trigger when user says things like:13- "Create a guide for X"14- "Scaffold a deployment guide for X"15- "New guide for [AppName]"16- "Create documentation for setting up X"17- "Write a how-to for X"1819## Execution Strategy2021This skill adapts to available tooling. Check for subagents before starting:2223```241. Check .claude/agents/ directory (or run /agents) for available subagents252. Identify agents matching needed capabilities263. Delegate to agents when available, otherwise execute inline27```2829### Capability Matching3031| Phase | Capability Needed | Agent Characteristics | Fallback |32|-------|-------------------|----------------------|----------|33| Research | Read-only codebase analysis | `disallowedTools` includes Write/Edit; description mentions "research", "patterns", or "existing" | Inline Glob, Grep, Read |34| Vendor verification | Web search and fetch | Tools include WebSearch, WebFetch | Inline WebSearch, WebFetch |35| Writing | Documentation creation | Tools include Write, Edit; description mentions "documentation", "guides", or "writing" | Inline Write tool |3637### Delegation Benefits3839When suitable agents exist:40- **Isolated context** - Research doesn't consume main conversation tokens41- **Specialized prompts** - Agents have domain-specific instructions42- **Parallel execution** - Multiple research tasks can run simultaneously4344### No Agents Available4546If no subagents match needed capabilities, execute all phases inline using standard tools. This skill is fully functional without subagents.4748## Step 0: Research Existing Patterns4950**Before creating any files**, research existing guides and verify technical content.5152### Delegation Check5354Per the Execution Strategy above:551. Check for a **read-only research agent** (description mentions "research", "patterns", or "existing"; has `disallowedTools: Write, Edit`)562. If found → delegate research tasks to that agent573. If not found → execute research inline as described below5859### Research Tasks (inline or delegated)60611. **Search for related guides:**62 - Use Glob/Grep to find guides for similar services (e.g., if creating a Mailgun guide, search for existing Mailgun configurations)63 - Check the workspace's docs, runbooks, and operations folders for relevant64 patterns65 - Look for guides that configure the same tools or services66672. **What to learn from existing guides:**6869 | Copy from existing guides | Verify independently |70 |---------------------------|---------------------|71 | Format and structure | Current vendor UI paths |72 | Callout style and placement | Latest best practices |73 | Checkbox granularity | New features or options |74 | Verification patterns | Security recommendations |75 | Section ordering | Deprecated settings |76 | Lessons learned / gotchas | - |77783. **When to deviate from existing guides:**79 - Vendor has released new recommended approach80 - Existing guide has a known issue or workaround that's been fixed81 - New guide covers a different use case requiring different steps82 - Security best practices have evolved8384 When deviating, flag potential updates to the reference guide for user review.85864. **Web service accuracy:**87 - Web service UIs change frequently; existing guides represent "last known working" configuration88 - Always include verification steps so users can confirm they're in the right place89 - If UI paths have changed significantly, flag potential reference guide updates for user review9091**Reference guide discovery by topic:**92| Topic | Search For | Use for |93|-------|------------|---------|94| Best practices | `best-practices`, `standards`, `policy` | Policies, patterns, standards to follow |95| Secrets management | `.env.example`, `secrets`, `key rotation` | Environment file pattern, key rotation |96| DNS and tunnels | `dns`, `tunnel`, `reverse proxy` | DNS record format, ingress, verification flow |97| Email delivery | `smtp`, `mail`, `email infrastructure` | MTA config, per-server setup pattern |98| Updates | `unattended upgrades`, `release tracking`, `dependency updates` | Fleet-wide update conventions |99| Backups | `backup`, `restore`, `retention` | Storage lifecycle, backup script patterns |100101## Step 1: Assess Complexity102103Before creating any files, evaluate the guide requirements:104105### Simple Format (single file)106107Use when ALL of these are true:108- Single, focused task or procedure109- Fewer than ~15 actionable steps110- No new infrastructure provisioning111- No ongoing maintenance requirements112- Can be completed in one session113114### Complex Format (multi-file)115116Use when ANY of these are true:117- Deploying a new application or service118- Creating new VMs, containers, or cloud resources119- Configuring multiple integrated services120- Requires backup or monitoring setup121- Has ongoing maintenance procedures122- More than 15 steps across multiple phases123124## Step 2: Determine Output Location125126| Purpose | Location |127|---------|----------|128| Cloud/VM deployment | `docs/[platform]/[app-name]/` or the workspace's existing deployment-docs area |129| Self-hosted infrastructure | `docs/infrastructure/[app-name]/` or the workspace's existing infrastructure area |130| Best practice implementation | `docs/best-practices/[topic-slug]/` |131| Project-specific | `Projects/[ProjectName]/guides/` |132| Educational | `Education/[Topic]/` |133| General purpose | Ask user for preferred location |134135## Step 3: Determine Inventory Requirements136137**Include inventory steps ONLY when:**138- Deploying to Proxmox VMs or LXC containers139- Deploying to AWS, GCP, or other cloud instances tracked in inventory140- Installing software that exposes ports on tracked infrastructure141142**Inventory location:** use the workspace's existing infrastructure inventory143file, if one exists.144145**Skip inventory steps when:**146- Local development guides147- Third-party/SaaS configuration148- Educational or theoretical guides149- Infrastructure not tracked in the inventory150151## Step 4: Select Phases (Complex Format Only)152153All phases are OPTIONAL. Select only what's needed:154155| Phase | Include When |156|-------|-------------|157| Overview & Planning | Complex deployments with architectural decisions |158| Infrastructure/VM Setup | Creating new VMs or cloud resources |159| Networking Configuration | Custom networking, VPCs, tunnels |160| Install Dependencies | Software prerequisites needed |161| Deploy Application | Core application deployment |162| Configure Reverse Proxy | Public-facing services |163| Configure Authentication | OAuth, SSO, user management |164| Configure Backups | Data persistence requirements |165| Configure Monitoring | Production services |166| Post-Deployment | Multi-step deployments needing verification |167| Ongoing Maintenance | Services requiring regular upkeep |168169## Step 5: Create Files170171### Delegation Check172173Per the Execution Strategy above:1741. Check for a **documentation writing agent** (tools include Write, Edit; description mentions "documentation", "guides", or "writing")1752. If found → delegate file creation to that agent with context from Steps 0-41763. If not found → create files inline as described below177178### Simple Format179180Create single file at chosen location: `[Guide Title].md`181182Use template from [templates.md](references/templates.md) - Simple Guide Template183184### Complex Format185186Create structure:187```188[AppName]/189├── STATUS.md ← Operational dashboard (scaffolded with placeholders)190└── Guide/191 ├── 1. [First Phase].md192 ├── 2. [Second Phase].md193 └── ...194```195196**Files to create:**1971. **STATUS.md** - Use template from [templates.md](references/templates.md) - STATUS.md Template198 - Scaffold with placeholder content199 - Update during/after deployment with actual values2002. **Guide/ files** - Use templates from [templates.md](references/templates.md) - Complex Guide Templates201202## Conventions (All Formats)2032041. **Checklists**: Use `- [ ]` for every actionable step2052. **Code blocks**: Always specify language2063. **Verification**: Include verification after major operations2074. **Callouts** (Obsidian syntax):208 - `> [!important]` for critical steps209 - `> [!note]` for helpful context210 - `> [!warning]` for dangerous operations211212## Complex Format Additional Conventions2132141. **File naming**: `[N]. [Phase Name].md` (numbered sequentially)2152. **Navigation**: Start each file with `**Previous:** [[X]]` and end with `**Next:** [[Y]]`216217## Templates218219See [references/templates.md](references/templates.md) for markdown templates.220221## Reference Examples222223**Simple guides:**224- `docs/cloud/setup/lock-down-ssh.md`225226**Complex guides (validated through deployment):**227- `docs/application-migration/` - Full application deployment with email, backups, and DNS228- `docs/email-infrastructure/` - Multi-server infrastructure with DNS and MTA config229- `docs/unattended-upgrades/` - Fleet-wide configuration230- `docs/cloud-app/` - Setup guide with multiple phases231- `docs/best-practices/remove-hardcoded-secrets/` - Best-practice implementation with multi-host deployment232233> [!important] Reference Guides for Format, Verify Content Independently234> When creating a new guide that overlaps with an existing one (e.g., Mailgun setup, Cloudflare DNS):235> 1. **Read existing guides** for format, structure, and lessons learned236> 2. **Verify technical content** against current vendor documentation237> 3. **Flag potential updates** to reference guides for user review if they appear outdated