Back to list
howells

document

by howells

Claude Code plugin. From idea to working implementation—explore, validate, plan, and build in one flow.

7🍴 0📅 Jan 24, 2026

SKILL.md


name: document description: | Capture solved problems as searchable documentation for future reference. Use when a problem is solved, after saying "that worked", "it's fixed", or when you want to document a solution so it can inform future sessions. license: MIT metadata: author: howells website: order: 18 desc: Capture solutions summary: Capture solved problems as searchable documentation for future reference. what: | Document captures non-trivial problems you've solved — the symptom, what didn't work, the root cause, and the fix. It creates searchable markdown in docs/solutions/ so future sessions can find it. why: | You solve the same problems twice because you forget you solved them. Document builds institutional knowledge that compounds across sessions. Next time you hit the same error, Arc finds the fix. decisions: - Triggered by success phrases ("that worked", "it's fixed"). Capture while context is fresh. - Includes failed attempts. Knowing what doesn't work saves time. - Categorized by type (build-error, test-failure, runtime-error, etc.). Searchable structure.

<required_reading> Read these reference files NOW:

  • ${CLAUDE_PLUGIN_ROOT}/references/solution-schema.md
  • ${CLAUDE_PLUGIN_ROOT}/templates/solution-template.md </required_reading>

<progress_context> Use Read tool: docs/progress.md (first 50 lines)

Check if similar problems were already documented. </progress_context>

Manual: /arc:document command

Only for non-trivial problems:

  • Multiple investigation attempts needed
  • Tricky debugging that took time
  • Non-obvious solution
  • Future sessions would benefit

Skip for: Typos, obvious syntax errors, trivial fixes.

Extract from conversation history:

Required:

  • Symptom: Observable error/behavior (exact error messages)
  • Investigation: What didn't work and why
  • Root cause: Technical explanation
  • Solution: What fixed it (code/config changes)
  • Prevention: How to avoid in future

If critical context missing, ask:

I need a few details to document this:

1. What was the exact error message or symptom?
2. What did you try that didn't work?
3. What was the root cause?

Step 2: Classify Problem

Determine problem type (maps to folder):

TypeFolderExamples
build-errordocs/solutions/build-errors/TypeScript errors, bundler issues
test-failuredocs/solutions/test-failures/Flaky tests, mocking issues
runtime-errordocs/solutions/runtime-errors/Crashes, exceptions
performancedocs/solutions/performance/Slow queries, memory leaks
ui-bugdocs/solutions/ui-bugs/Layout issues, state bugs
integrationdocs/solutions/integrations/API issues, auth problems
configdocs/solutions/config/Environment, tooling setup

Step 3: Generate Filename

Format: [problem-summary]-[YYYYMMDD].md

Examples:

  • drizzle-migration-not-running-20260114.md
  • clerk-session-not-persisting-20260114.md
  • tailwind-classes-not-applying-20260114.md

Step 4: Create Documentation

mkdir -p docs/solutions/[category]

Use ${CLAUDE_PLUGIN_ROOT}/templates/solution-template.md structure:

---
date: YYYY-MM-DD
problem_type: [build-error|test-failure|runtime-error|performance|ui-bug|integration|config]
severity: [critical|high|medium|low]
tags: [keyword1, keyword2]
stack: [next, drizzle, clerk, etc.]
---

# [Clear Problem Title]

## Problem
[1-2 sentence description]

## Symptoms
- [What you saw]
- [Error messages]

## What Didn't Work
**Attempt 1:** [Description]
- Why it failed: [Reason]

## Solution
[The fix that worked]

```typescript
// Before (broken):
...

// After (fixed):
...

Why This Works

[Root cause explanation]

Prevention

  • [How to avoid this]
  • [What to watch for]
  • [Links to similar issues if any]

## Step 5: Present Options

✓ Solution documented

File: docs/solutions/[category]/[filename].md

What's next?

  1. Continue working (default)
  2. View documentation
  3. Link to related issue
  4. Other
</process>

<integration>
**The Knowledge Loop:**

ideate (design) → implement → encounter problem → solve → /arc:document (document) ↓ informs future ideate sessions


When starting new ideate sessions, the progress journal and `docs/solutions/` are read to surface past learnings and context.
</integration>

<tasklist_append>
**After documenting a solution, offer to add prevention tasks:**

If the solution includes prevention steps that require action:

"This solution has prevention steps. Add them to your tasklist?"


If yes, add to `docs/tasklist.md` under "Backlog" or "Ideas":
- "Add [validation/check] to prevent [problem]"
- "Refactor [area] to avoid [issue]"
- "Add test for [edge case]"

Prevention tasks help ensure the problem doesn't recur.
</tasklist_append>

<progress_append>
After documenting a solution, append to progress journal:

```markdown
## YYYY-MM-DD HH:MM — /arc:document
**Task:** Documented solution for [problem summary]
**Outcome:** Complete
**Files:** docs/solutions/[category]/[filename].md
**Decisions:**
- Problem type: [category]
- Severity: [level]
**Next:** Continue working

---

</progress_append>

<success_criteria>

  • YAML frontmatter complete (date, type, severity, tags)
  • Problem clearly described with exact error messages
  • Failed attempts documented (helps avoid wrong paths)
  • Solution includes code examples
  • Root cause explained (why, not just what)
  • Prevention guidance included </success_criteria>

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon