agentleFS
davekilleendavekilleen/Dex/.agents/skills/dex-improve/SKILL.md

dex-improve

Skill509 starsChanged 3 months agoMITView on GitHub

Workshop one improvement idea into an implementation plan. Use when the user says 'let's flesh out idea-X', 'turn this into a plan', 'improve Dex's Y'. Not for ranking the whole backlog; use `dex-backlog`. Not for a PRD for the user's own product; use `product-brief`.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 14 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When invoked, offer these options:

    line 31
  2. Distinctive:

    If user provides $IDEA argument, skip to Mode 1 directly.

    line 43
  3. Distinctive:

    Search web for latest Claude Code capabilities

    line 79
  4. Distinctive:

    Check official docs at docs.anthropic.com

    line 80
  5. Distinctive:

    Consider synergies with strategic pillars

    line 110
  6. Distinctive:

    Ask max 2-3 questions at a time

    line 118
  7. Distinctive:

    When requirements are firm:

    line 127
  8. Very specific:

    Add any new patterns to 06-Resources/Learnings/

    line 131
  9. Distinctive:

    Add viable future ideas to backlog

    line 132
  10. Distinctive:

    If missing, this is first run — do a full scan instead

    line 143
  11. Distinctive:

    Fetch current changelog: Use WebSearch to find latest Claude Code changelog/releases

    line 145
  12. Very specific:

    Check System/Skills/ for skills

    line 218
  13. Very specific:

    Check core/mcp/ for MCP integrations

    line 219
  14. Very specific:

    Read 06-Resources/Learnings/ for known patterns

    line 220
  15. Distinctive:

    Use the capability match table (from Mode 1, Phase 3)

    line 223
  16. Distinctive:

    Search web for comprehensive Claude Code feature list if needed

    line 224
  17. Distinctive:

    Check internal patterns before suggesting new implementations

    line 393
  18. Distinctive:

    Update state file after Mode 2 runs

    line 395
  19. Very specific:

    Call track_event with event_name improvement_workshopped and properties:

    line 418

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- Generated from `.claude/skills/dex-improve/SKILL.md` by `scripts/generate-agents-skills.py`. Do not edit. -->

What This Command Does

In plain English: Your design partner for making Dex better. Three ways to use it:

  1. Workshop an idea — Bring a fuzzy improvement idea, we'll shape it into a concrete plan
  2. Review what's new — See recent Claude Code changes and how they could improve your system
  3. Full capability audit — Find features you're not using that could help with your jobs-to-be-done

When to use it:

  • "I have an idea but don't know how to implement it"
  • "What new Claude Code features should I be using?"
  • "Am I getting the most out of this system?"

How to run it:

/dex-improve                           # Shows menu of options
/dex-improve "your idea here"          # Jumps straight to workshopping

Entry Point

When invoked, offer these options:

How would you like to explore improvements?

1. **I have an idea** — Workshop a specific improvement
2. **What's new?** — Review Claude Code changes since [last check: DATE]
3. **Full audit** — Review all capabilities vs. your current usage

Or just describe your idea and I'll start workshopping.

If user provides $IDEA argument, skip to Mode 1 directly.


Mode 1: Workshop an Idea

Arguments: $IDEA — High-level description of what you want to improve

Phase 1: Understand

Parse the idea and frame it back:

  1. Identify which Dex areas are involved:
    • Workflows (daily, weekly routines)
    • Automation (scripts, hooks, scheduled tasks)
    • Relationships (people tracking, meetings)
    • Task management (capture, flow, priorities)
    • Projects (planning, tracking, health)
    • Information retrieval (search, lookups)
  2. State your understanding in 2-3 sentences
  3. Note any ambiguity that needs clarification

Phase 2: Research + Capability Scan

Build context from multiple sources:

Internal (always check):

06-Resources/Learnings/                 # What you've learned so far
System/Skills/                       # Existing reusable behaviors
.claude/commands/                    # Existing commands that might overlap
System/pillars.yaml                  # Strategic priorities

External (when needed):

  • Search web for latest Claude Code capabilities
  • Check official docs at docs.anthropic.com

Check:

  • Does similar functionality already exist?
  • What existing patterns could we leverage?

Phase 3: Capability Match

Map requirements to optimal Claude Code features:

Requirement PatternSuggested FeatureWhy
"Every time I edit X, do Y"PostToolUse hookAutomatic trigger after tool completion
"Before doing X, check Y"PreToolUse hookValidation/confirmation gate
"At start of session, load Z"SessionStart hookContext injection
"Fast search while I work"Explore sub-agentHaiku model, runs in parallel
"Different perspective on X"Custom sub-agentIsolated context, specific focus
"Multi-step structured workflow"SkillReusable behavior, always available
"Explicit invocation with steps"CommandUser-triggered workflow
"Connect to external service"MCP integrationTool access to external systems

Present the capability analysis to the user.

Phase 4: Expand

Suggest 2-3 adjacent improvements:

  • Based on capability analysis, what else could we solve?
  • Flag compound opportunities (build A, get B nearly free)
  • Connect to existing gaps in the system
  • Consider synergies with strategic pillars

Frame as: "While we're here, you might also consider..."

Phase 5: Refine

Drive toward concrete requirements through focused questions:

  • Ask max 2-3 questions at a time
  • Validate capability assumptions
  • Confirm implementation approach preference
  • Identify acceptance criteria

Loop between Research → Expand → Refine until requirements are solid.

Phase 6: Plan + Update

When requirements are firm:

  1. Generate the plan document (see template below)
  2. Save to plans/dex-improvement-[slug].md
  3. Add any new patterns to 06-Resources/Learnings/
  4. Add viable future ideas to backlog

Mode 2: What's New?

Review recent Claude Code changes and suggest improvements.

Process

  1. Read state file: System/claude-code-state.json
    • If missing, this is first run — do a full scan instead
  2. Fetch current changelog: Use WebSearch to find latest Claude Code changelog/releases
  3. Compare: What's new since last_check date?
  4. For each new feature, evaluate:
    • Is this relevant to Dex use cases?
    • What existing workflow could it improve?
    • Does it unlock something previously impossible?
  5. Present findings:
📢 Claude Code Updates (since [last check date])

=== NEW CAPABILITIES ===

1. [Feature Name]
   - What it does: [description]
   - How it could help: [specific Dex improvement]
   - Effort to implement: Low/Medium/High

2. [Feature Name]
   ...

=== SUGGESTED IMPROVEMENTS ===

Based on these new capabilities, here's what you could build:

1. [Improvement name]
   - What: [description]
   - Why: [connects to which pillar/job-to-be-done]
   - Uses: [which new capability]

Want to workshop any of these? (Enter number or describe your own idea)
  1. Update state file with current date and capabilities seen

State File Format

Location: System/claude-code-state.json

{
  "last_check": "2026-01-22",
  "last_version_seen": "1.0.30",
  "features_seen": [
    "hooks",
    "sub-agents",
    "skills",
    "commands",
    "mcp"
  ],
  "features_noted": [
    {
      "version": "1.0.30",
      "feature": "Async hooks",
      "date_seen": "2026-01-22"
    }
  ]
}

Mode 3: Full Capability Audit

Review all known Claude Code capabilities against your current system.

Process

  1. Inventory current usage:
    • Scan .claude/ folder for hooks, commands, settings
    • Check System/Skills/ for skills
    • Check core/mcp/ for MCP integrations
    • Read 06-Resources/Learnings/ for known patterns
  2. Load capability reference:
    • Use the capability match table (from Mode 1, Phase 3)
    • Search web for comprehensive Claude Code feature list if needed
  3. Gap analysis:
=== CAPABILITY AUDIT ===

✅ Using Well:
- Commands (12 defined)
- Skills (person-lookup)

⚠️ Underutilized:
- Hooks — No hooks configured. Could automate:
  - Session start: Load context automatically
  - Post-edit: Update related files

❌ Not Using:
- Sub-agents — Could parallelize research tasks
- MCP beyond tasks — Calendar, email integrations possible

=== RECOMMENDATIONS ===

Ranked by impact vs. effort:

1. [High impact, low effort]
   - Add SessionStart hook to load daily context
   - Why: Saves 30 seconds every session
   - Connects to: [pillar]

2. [High impact, medium effort]
   ...
  1. Offer to workshop any recommendation the user wants to pursue

Plan Output Template

Create at: plans/dex-improvement-[slug].md

# Dex Improvement: [Title]

**Created:** [Date]
**Status:** Planning → In Progress → Complete
**Pillar:** [pillar name if configured]

## Overview

[2-3 sentence summary of what we're improving and why]

## Requirements

- [ ] Requirement 1
- [ ] Requirement 2
- [ ] Requirement 3

## Capability Analysis

| Requirement | Implementation | Feature Type | Rationale |
|-------------|----------------|--------------|-----------|
| [req] | [how] | Hook/Sub-agent/Skill/Command | [why this approach] |

## Recommended Approach

[Which Claude Code features to use and why. Include trade-offs considered.]

## Implementation Steps

### Phase 1: [Foundation]
1. [Step]
2. [Step]

### Phase 2: [Core]
1. [Step]
2. [Step]

## Files to Create/Modify

| File | Action | Purpose |
|------|--------|---------|
| `path/to/file` | Create/Modify | [what] |

## Compound Opportunities

[What else we could solve while building this]

- [ ] [Adjacent improvement 1]
- [ ] [Adjacent improvement 2]

## Acceptance Criteria

- [ ] [Testable outcome 1]
- [ ] [Testable outcome 2]

## Questions Resolved

- Q: [Question that came up]
- A: [How we decided]

Example Interactions

Mode 1: Workshop

/dex-improve "Better meeting action item capture"

> **Understanding:** You want to improve how action items flow from meetings 
> into your task system. This touches workflows (meeting processing) and 
> task management (capture and routing).
>
> **Current state** (from Learnings):
> - Meeting notes go to `00-Inbox/Meetings/`
> - Action items manually extracted during review
>
> **Capability scan:**
> - PostToolUse hook could auto-trigger processing after meeting note creation
> - Sub-agent could parallel process: action items, follow-ups, person updates
>
> **Questions:**
> 1. Where are items getting lost—during capture, or in follow-through?
> 2. Would auto-drafted follow-up emails be valuable?

Mode 2: What's New

/dex-improve
> [selects "What's new?"]

> 📢 Claude Code Updates (since 2026-01-15)
>
> === NEW CAPABILITIES ===
> 1. Async Hooks — Hooks can now run without blocking
>    - How it could help: Faster session startup
>    - Effort: Low
>
> === SUGGESTED IMPROVEMENTS ===
> 1. Non-blocking context loading
>    - What: Load learnings/preferences in background
>    - Why: Snappier session starts
>
> Want to workshop any of these?

Mode 3: Full Audit

/dex-improve
> [selects "Full audit"]

> === CAPABILITY AUDIT ===
>
> ✅ Using Well: Commands (12), Skills (1)
> ⚠️ Underutilized: Hooks (0 configured)
> ❌ Not Using: Sub-agents, Advanced MCP
>
> === TOP RECOMMENDATION ===
> Add SessionStart hook — saves context loading time every session
>
> Want me to workshop this improvement?

Behaviors

Always Do

  • Check internal patterns before suggesting new implementations
  • Tie suggestions to user's pillars/jobs-to-be-done when configured
  • Update state file after Mode 2 runs
  • Offer concrete capability recommendations, not just ideas

Never Do

  • Skip the research phase
  • Suggest capabilities without explaining why they fit
  • Output a plan before requirements are confirmed
  • Make changes without explicit approval

Philosophy

This isn't just requirements gathering—it's capability-aware design. The goal is to help you leverage Claude Code's full potential while building exactly what you need, nothing more.


Track Usage (Silent)

Call the mark_feature_used tool on the dex-analytics MCP server with dex-improve. This ticks the feature's box in System/usage_log.md, which is what /dex-level-up reads to recommend features that have not been tried. It writes locally and sends nothing, so it runs whether or not analytics is enabled.

Analytics (Silent):

Call track_event with event_name improvement_workshopped and properties:

  • idea_id

This only fires if the user has opted into analytics. No action needed if it returns "analytics_disabled".

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.