beads-converter
Convert plans to Beads - works with /beads-loop, /beads-swarm, or RalphTUI
Generate or update hierarchical code map from any directory as root, with nested tree structure (project)
> /plugin marketplace add GantisStorm/essentials-claude-code > /plugin install essentials@essentials-claude-code
How it fires
How this command gets triggered: by you, by Claude, or both.
/codemap-creatorContext preview
What this command does when you run it.
Generate or update hierarchical code map from any directory as root, with nested tree structure (project)
allowed-tools: Task, Bash argument-hint: "<root_dir> [--ignore <patterns>] | --update <codemap> [--diff | --mr <id>]" description: Generate or update hierarchical code map from any directory as root, with nested tree structure (project) context: fork model: opus
Generate or update a hierarchical code map using Claude Code's built-in LSP tools. Maps functions, classes, variables, and imports in a nested tree structure.
Generate a new codemap from scratch:
/codemap-creator src/ /codemap-creator . --ignore "node_modules,dist"
Update an existing codemap with only changed files:
/codemap-creator --update .claude/maps/code-map-src-a3f9e.json --diff /codemap-creator --update .claude/maps/code-map-src-a3f9e.json --mr 123 /codemap-creator --update .claude/maps/code-map-src-a3f9e.json --pr 456
If no diff source specified with --update, defaults to --diff.
The codemap shows a nested tree structure from your chosen root:
root_dir/
├── subdir1/
│ ├── file1.ts
│ │ └── symbols: [class UserService, function getUser...]
│ └── nested/
│ └── file2.ts
│ └── symbols: [interface Config...]
├── subdir2/
│ └── file3.ts
│ └── symbols: [function helper...]
└── index.ts
└── symbols: [export *, function main...]Parse `$ARGUMENTS` to determine mode:
**Update Mode** (if `--update` present): 1. Extract codemap path after `--update` 2. Detect diff source:
3. Get list of changed files
**Create Mode** (default): 1. **Root directory** (required, first argument)
2. **Ignore patterns** (optional `--ignore`)
Run the appropriate command to get changed files:
# For --diff (default) git diff --name-only && git diff --staged --name-only # For --mr <id> glab mr diff <id> --name-only # For --pr <id> gh pr diff <id> --name-only
Filter to only files within the codemap's root directory.
**Create Mode:**
subagent_type: "essentials:codemap-creator-default" run_in_background: true prompt: "MODE: create\nRoot: <root_dir>\nIgnore: <patterns or none>"
**Update Mode:**
subagent_type: "essentials:codemap-creator-default" run_in_background: true prompt: "MODE: update\nCodemap: <codemap_path>\nChanged files:\n- file1.ts\n- file2.ts\n..."
Output a status message like "Creating code map..." and **end your turn**. The system wakes you when the agent finishes.
**Create Mode:**
## Hierarchical Code Map Created (LSP)
**Root**: <root_dir>
**Map**: .claude/maps/code-map-{name}-{hash5}.json
### Totals
| Metric | Count |
|--------|-------|
| Directories | X |
| Files | X |
| Symbols | X |
| Exported | X |
Next: Read the map file for hierarchical code navigation.**Update Mode:**
## Code Map Updated (LSP) **Map**: <codemap_path> **Source**: git diff | MR #X | PR #X **Files Updated**: X **Files Added**: X **Files Removed**: X ### Changes | File | Action | Symbols | |------|--------|---------| | path/to/file.ts | updated | 5 | | path/to/new.ts | added | 3 | | path/to/old.ts | removed | - | Next: Codemap is current with latest changes.
| Scenario | Action | |----------|--------| | Root directory not found | Report error, suggest valid paths | | Codemap not found (update) | Report error, suggest create mode | | No files in tree | Report empty, suggest different root | | No changed files (update) | Report "already up to date" | | glab/gh not installed | Report error, suggest install | | MR/PR not found | Report error, check ID | | LSP fails for file | Log error, mark file, continue |
# Create mode /codemap-creator src/ /codemap-creator backend/services /codemap-creator frontend/components --ignore "*.test.tsx,*.stories.tsx" /codemap-creator . # Update mode - git diff (uncommitted changes) /codemap-creator --update .claude/maps/code-map-src-a3f9e.json /codemap-creator --update .claude/maps/code-map-src-a3f9e.json --diff # Update mode - from MR/PR /codemap-creator --update .claude/maps/code-map-src-a3f9e.json --mr 123 /codemap-creator --update .claude/maps/code-map-src-a3f9e.json --pr 456
Loops, swarms, and teams powered by Claude Code's built-in Task System. Loop, swarm, and team are three execution modes. Loop runs sequentially. Swarm runs parallel subagents. Team spawns full Claude Code instances with shared contracts via Agent Teams.
Repo: GantisStorm/essentials-claude-code
Convert plans to Beads - works with /beads-loop, /beads-swarm, or RalphTUI
Deep bug investigation with architectural fix plan generation - works with any executor (loop or swarm)