deepagents-architectur…
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Analyze and improve existing documentation using Diataxis principles
$ npx -y skills add existential-birds/beagle --skill improve-doc --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/improve-docContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyze and improve existing documentation using Diataxis principles
name: improve-doc description: Analyze and improve existing documentation using Diataxis principles disable-model-invocation: true
Analyze an existing markdown document, classify sections by Diataxis type, identify issues, and interactively refine each section.
Invoke the **improve-doc** skill with a document path, e.g. `improve-doc docs/guides/getting-started.md`.
The skill runs in two phases:
1. **Analysis Phase:** Parse document, classify sections, identify issues 2. **Refinement Phase:** Interactive loop to improve each section
Hard sequencing — advance only when the **pass condition** is met (artifact or explicit user input, not assumed).
**Before Phase 2 (refinement):**
1. **Read** — Full contents of the file at **Path** are loaded.
2. **Core skill** — [docs-style](../docs-style/SKILL.md) is loaded (or its path read) before classification.
3. **Handoff** — User saw an analysis summary (template in Step 5 or equivalent) and entered **`start`** to begin refinement, or **`abort`** to exit.
**Before overwriting the file (Phase 2, Step 4):**
1. **Choices** — Every section with open issues has a terminal outcome: applied **`yes`**, unchanged **`skip`**, or **`modify`** loop finished with **`yes`** or **`skip`**.
2. **Skips** — Content for every **`skip`** matches the original section text (copy preserved, not paraphrased).
3. **Write** — Only after the above.
**Ambiguous Diataxis type** — If classification is uncertain, do not edit that section until the user answers the clarifying fork (Step 2b) or explicitly confirms your stated default.
Read the target markdown file and parse into sections based on headings:
Load [docs-style](../docs-style/SKILL.md) for core writing principles that apply to all documentation types.
For each section, determine the Diataxis type using these indicators (for the full decision procedure and the two key distinctions, see [docs-style/references/diataxis-compass.md](../docs-style/references/diataxis-compass.md)):
| Type | Indicators | |------|------------| | **Tutorial** | "Let's", "we will", step-by-step learning, builds toward a project, minimal explanation of why | | **How-To** | "How to" title, task-focused steps, assumes prior knowledge, goal-oriented | | **Reference** | Parameter tables, type signatures, API specs, factual descriptions, no narrative | | **Explanation** | "Why", "because", history, trade-offs, alternatives, conceptual discussion |
**Classification rules:**
1. Check title first - "How to X" is always How-To, "Why X" is always Explanation 2. Look for structural patterns - tables with parameters/types suggest Reference 3. Analyze language - learning-oriented ("Let's learn") vs task-oriented ("To accomplish X") 4. Consider context - what comes before/after this section 5. Mark as "Mixed" if section blends types (this is an issue to fix)
For each section, check for issues based on its detected type:
**Tutorial issues:**
**How-To issues:**
**Reference issues:**
**Explanation issues:**
**Cross-type issues (any section):**
Display analysis summary to user:
## Document Analysis **File:** `docs/guides/getting-started.md` **Sections found:** 8 **Estimated time:** ~15 minutes to refine ### Type Breakdown | Type | Sections | Health | |------|----------|--------| | Tutorial | 2 | 1 issue | | How-To | 3 | 4 issues | | Reference | 1 | Clean | | Explanation | 1 | 2 issues | | Mixed | 1 | Needs split | ### Top Issues 1. **Section "Setting Up"** (How-To): Contains explanatory tangent about architecture 2. **Section "Configuration Options"** (Mixed): Blends reference table with tutorial steps 3. **Section "Authentication"** (How-To): Missing prerequisites, steps not atomic 4. **Section "Why We Built This"** (Explanation): Includes procedural steps ### Ready to Refine? I'll go through each section with issues. For each one, you can: - **yes** - Accept the proposed improvement - **skip** - Keep original, move to next section - **modify** - Tell me what to change about the proposal Type "start" to begin refinement, or "abort" to exit without changes.
Image: NASA, Public Domain. Source Beagle is an Agent Skills marketplace: framework-aware code review, documentation, testing, architectural analysis, and git workflows for any compatible coding agent.
Repo: existential-birds/beagle
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Reviews Deep Agents code for bugs, anti-patterns, and improvements. Use when reviewing code that uses create_deep_agent, backends, subagents, middleware, or…
Implements agents using Deep Agents. Use when building agents with create_deep_agent, configuring backends, defining subagents, adding middleware, or setting…
Guides architectural decisions for LangGraph applications. Use when deciding between LangGraph vs alternatives, choosing state management strategies, designing…
Reviews LangGraph code for bugs, anti-patterns, and improvements. Use when reviewing code that uses StateGraph, nodes, edges, checkpointing, or other LangGraph…
Implements stateful agent graphs using LangGraph. Use when building graphs, adding nodes/edges, defining state schemas, implementing checkpointing, handling…