mapify-cli 1.6.2__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/.gitignore +5 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/PKG-INFO +52 -40
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/README.md +51 -39
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/pyproject.toml +1 -1
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/__init__.py +271 -638
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/entity_extractor.py +1 -1
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/graph_query.py +6 -4
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/playbook_manager.py +36 -24
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/relationship_detector.py +3 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/semantic_search.py +4 -4
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/actor.md +51 -36
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/evaluator.md +2 -2
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/predictor.md +29 -71
- mapify_cli-2.0.0/src/mapify_cli/templates/agents/research-agent.md +265 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/commands/map-debug.md +19 -95
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/commands/map-efficient.md +91 -208
- mapify_cli-2.0.0/src/mapify_cli/templates/commands/map-learn.md +463 -0
- mapify_cli-2.0.0/src/mapify_cli/templates/commands/map-release.md +1279 -0
- mapify_cli-2.0.0/src/mapify_cli/templates/commands/map-review.md +180 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-cli-reference/SKILL.md +1 -24
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/tools/validate_dependencies.py +4 -2
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/workflow_logger.py +2 -2
- mapify_cli-1.6.2/.claude/hooks/README.md +0 -319
- mapify_cli-1.6.2/src/mapify_cli/recitation_manager.py +0 -963
- mapify_cli-1.6.2/src/mapify_cli/templates/commands/map-feature.md +0 -517
- mapify_cli-1.6.2/src/mapify_cli/templates/commands/map-refactor.md +0 -342
- mapify_cli-1.6.2/src/mapify_cli/templates/commands/map-review.md +0 -36
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/README.md +0 -319
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/__init__.py +0 -8
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/inject_playbook_bullets.py +0 -291
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/quality_gates.py +0 -462
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/suggest_skill.py +0 -395
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/suggest_workflow.py +0 -413
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/helpers/validate_checkpoint_file.py +0 -349
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/session-start.sh +0 -100
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/settings.json +0 -68
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/stop.sh +0 -95
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/tests/test_auto_activation.sh +0 -106
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/user-prompt-submit.sh +0 -241
- mapify_cli-1.6.2/src/mapify_cli/templates/hooks/validate-agent-templates.sh +0 -94
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/.claude/skills/README.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/docs/cipher-setup-guide/README.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/contradiction_detector.py +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/playbook_query.py +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/schemas.py +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/curator.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/documentation-reviewer.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/monitor.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/reflector.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/agents/task-decomposer.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/commands/map-fast.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/hooks/improve-prompt.py +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/settings.hooks.json +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/README.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/SKILL.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/agent-architecture.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/cipher-integration.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-debug-deep-dive.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-efficient-deep-dive.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-fast-deep-dive.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-feature-deep-dive.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-refactor-deep-dive.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/playbook-system.md +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/skills/skill-rules.json +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/templates/workflow-rules.json +0 -0
- {mapify_cli-1.6.2 → mapify_cli-2.0.0}/src/mapify_cli/tools/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mapify-cli
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: MAP Framework installer - Modular Agentic Planner for Claude Code
|
|
5
5
|
Project-URL: Homepage, https://github.com/azalio/map-framework
|
|
6
6
|
Project-URL: Repository, https://github.com/azalio/map-framework.git
|
|
@@ -47,23 +47,20 @@ Implementation of **Modular Agentic Planner (MAP)** — a cognitive architecture
|
|
|
47
47
|
### Inside Claude Code (Recommended)
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
#
|
|
51
|
-
/map-feature implement user authentication with JWT tokens
|
|
52
|
-
|
|
53
|
-
# ⭐ RECOMMENDED: Efficient workflow (30-40% token savings, preserves learning)
|
|
50
|
+
# ⭐ RECOMMENDED: Efficient workflow (40-50% token savings)
|
|
54
51
|
/map-efficient implement user profile page with avatar upload
|
|
55
52
|
|
|
56
53
|
# Debugging
|
|
57
54
|
/map-debug fix the API 500 error on login endpoint
|
|
58
55
|
|
|
59
|
-
# Refactoring
|
|
60
|
-
/map-refactor refactor UserService class with dependency injection
|
|
61
|
-
|
|
62
|
-
# Code review
|
|
63
|
-
/map-review review the recent changes in auth.py
|
|
64
|
-
|
|
65
56
|
# ⚠️ Fast workflow (40-50% savings, NO learning - throwaway code only)
|
|
66
57
|
/map-fast prototype a quick API endpoint mockup
|
|
58
|
+
|
|
59
|
+
# 📚 Optional: Preserve learnings from any workflow
|
|
60
|
+
/map-learn [paste workflow summary to extract patterns]
|
|
61
|
+
|
|
62
|
+
# 📦 Release workflow (for package maintainers)
|
|
63
|
+
/map-release patch # or: minor, major
|
|
67
64
|
```
|
|
68
65
|
|
|
69
66
|
### Command Line Usage
|
|
@@ -76,7 +73,7 @@ cd your-project
|
|
|
76
73
|
claude
|
|
77
74
|
|
|
78
75
|
# Use slash commands inside Claude Code
|
|
79
|
-
/map-
|
|
76
|
+
/map-efficient implement user authentication with JWT tokens
|
|
80
77
|
```
|
|
81
78
|
|
|
82
79
|
**Note:** Direct `claude --agents` syntax is not applicable to MAP Framework, as the orchestration logic is implemented in slash command prompts (`.claude/commands/map-*.md`), not as a separate agent file.
|
|
@@ -103,7 +100,6 @@ mapify init
|
|
|
103
100
|
mapify --help # Show all available commands
|
|
104
101
|
mapify validate graph <file> # Validate task dependency graphs
|
|
105
102
|
mapify playbook search <query> # Search playbook patterns
|
|
106
|
-
mapify recitation get-context # Get current task plan
|
|
107
103
|
```
|
|
108
104
|
|
|
109
105
|
**Version Pinning:**
|
|
@@ -140,27 +136,28 @@ pip install -e .
|
|
|
140
136
|
|
|
141
137
|
## 🔀 Workflow Variants
|
|
142
138
|
|
|
143
|
-
MAP Framework offers
|
|
139
|
+
MAP Framework offers workflow variants optimized for different scenarios:
|
|
144
140
|
|
|
145
141
|
| Command | Token Usage | Learning | Quality Gates | Best For |
|
|
146
142
|
|---------|-------------|----------|---------------|----------|
|
|
147
|
-
| **`/map-
|
|
148
|
-
| **`/map-
|
|
149
|
-
| **`/map-fast`** ⚠️ | 50
|
|
143
|
+
| **`/map-efficient`** ⭐ | **50-60%** | Optional via `/map-learn` | ✅ Essential agents | **RECOMMENDED: Most production tasks** |
|
|
144
|
+
| **`/map-debug`** | 50-60% | Optional via `/map-learn` | ✅ Essential agents | Bug fixes and debugging |
|
|
145
|
+
| **`/map-fast`** ⚠️ | 40-50% | ❌ None | ⚠️ Basic only | Throwaway prototypes, experiments (NOT production) |
|
|
146
|
+
| **`/map-learn`** | ~5-8K tokens | ✅ Full | Reflector + Curator | Capture patterns after any workflow |
|
|
147
|
+
| **`/map-release`** | Variable | Optional via `/map-learn` | 12 validation gates | Package releases |
|
|
150
148
|
|
|
151
149
|
### Which Workflow Should You Use?
|
|
152
150
|
|
|
153
151
|
**Use `/map-efficient` (RECOMMENDED) when:**
|
|
154
152
|
- ✅ Building production features where token costs matter
|
|
155
153
|
- ✅ Well-understood tasks with low to medium risk
|
|
156
|
-
- ✅ You want learning without excessive token usage
|
|
157
154
|
- ✅ Iterative development with frequent workflows
|
|
155
|
+
- ✅ Run `/map-learn` afterward if you want to preserve patterns
|
|
158
156
|
|
|
159
|
-
**Use `/map-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
- 🔒 You need complete quality assurance and impact analysis
|
|
157
|
+
**Use `/map-debug` when:**
|
|
158
|
+
- 🔧 Fixing bugs or investigating errors
|
|
159
|
+
- 🔧 Root cause analysis needed
|
|
160
|
+
- 🔧 Systematic debugging approach required
|
|
164
161
|
|
|
165
162
|
**Use `/map-fast` (minimal) ONLY when:**
|
|
166
163
|
- 🗑️ Creating throwaway prototypes you'll discard
|
|
@@ -168,6 +165,11 @@ MAP Framework offers three workflow variants optimized for different scenarios:
|
|
|
168
165
|
- 🗑️ Learning/tutorial contexts where failure is acceptable
|
|
169
166
|
- ⚠️ **NEVER for production code** - no learning, quality risks
|
|
170
167
|
|
|
168
|
+
**Use `/map-learn` after any workflow:**
|
|
169
|
+
- 📚 To preserve valuable patterns discovered during work
|
|
170
|
+
- 📚 When implementation approach could help future tasks
|
|
171
|
+
- 📚 To update playbook and cross-project cipher knowledge
|
|
172
|
+
|
|
171
173
|
### 🎯 Auto-Activation System
|
|
172
174
|
|
|
173
175
|
**Don't remember which workflow to use?** MAP automatically suggests the right workflow based on your request!
|
|
@@ -177,10 +179,10 @@ Just describe your task naturally - no need to remember slash commands:
|
|
|
177
179
|
| Your Request | MAP Suggests | Why |
|
|
178
180
|
|--------------|--------------|-----|
|
|
179
181
|
| "Fix the failing tests" | `/map-debug` | Keywords: fix, failing test |
|
|
180
|
-
| "Implement user login" | `/map-
|
|
182
|
+
| "Implement user login" | `/map-efficient` | Keywords: implement, feature |
|
|
181
183
|
| "Optimize database queries" | `/map-efficient` | Keywords: optimize |
|
|
182
|
-
| "Restructure auth module" | `/map-refactor` | Keywords: restructure |
|
|
183
184
|
| "Quick prototype for testing" | `/map-fast` | Keywords: quick, prototype |
|
|
185
|
+
| "Save patterns from last task" | `/map-learn` | Keywords: save, patterns, learn |
|
|
184
186
|
|
|
185
187
|
**How it works:**
|
|
186
188
|
1. Start typing your request normally
|
|
@@ -196,17 +198,21 @@ Edit `.claude/workflow-rules.json` to add project-specific trigger words and pat
|
|
|
196
198
|
|
|
197
199
|
**`/map-efficient` optimizations:**
|
|
198
200
|
- **Conditional Predictor**: Only called for high-risk tasks (security, breaking changes)
|
|
199
|
-
- **Batched Learning**: Reflector/Curator run once at end (vs per-subtask)
|
|
200
201
|
- **Evaluator Skipped**: Monitor provides sufficient validation for most tasks
|
|
201
|
-
- **
|
|
202
|
+
- **Learning Optional**: Run `/map-learn` separately to capture patterns
|
|
203
|
+
- **Result**: 40-50% token savings with essential quality gates
|
|
202
204
|
|
|
203
205
|
**`/map-fast` limitations:**
|
|
204
206
|
- ❌ No impact analysis (Predictor skipped)
|
|
205
207
|
- ❌ No quality scoring (Evaluator skipped)
|
|
206
208
|
- ❌ No learning (Reflector/Curator skipped)
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
-
|
|
209
|
+
- 💡 Can add learning retroactively via `/map-learn`
|
|
210
|
+
|
|
211
|
+
**`/map-learn` benefits:**
|
|
212
|
+
- ✅ Calls Reflector to extract patterns from workflow
|
|
213
|
+
- ✅ Calls Curator to update playbook
|
|
214
|
+
- ✅ Syncs high-quality bullets to cipher (cross-project knowledge)
|
|
215
|
+
- ✅ Run after any workflow when patterns are worth preserving
|
|
210
216
|
|
|
211
217
|
**See [USAGE.md](docs/USAGE.md#workflow-variants) for detailed decision guide and real-world token usage examples.**
|
|
212
218
|
|
|
@@ -219,7 +225,7 @@ MAP includes interactive skills that provide specialized guidance:
|
|
|
219
225
|
**Auto-suggested when you ask:**
|
|
220
226
|
- "Which workflow should I use?"
|
|
221
227
|
- "What's the difference between workflows?"
|
|
222
|
-
- "When to use /map-efficient vs /map-
|
|
228
|
+
- "When to use /map-efficient vs /map-fast?"
|
|
223
229
|
|
|
224
230
|
**What you get:**
|
|
225
231
|
- Quick decision tree (5 questions → recommended workflow)
|
|
@@ -265,24 +271,28 @@ MAP uses MCP (Model Context Protocol) servers for enhanced capabilities:
|
|
|
265
271
|
- **claude-reviewer** - Professional code review with security analysis
|
|
266
272
|
- **context7** - Up-to-date library documentation
|
|
267
273
|
- **sequential-thinking** - Chain-of-thought reasoning for complex problems
|
|
268
|
-
- **codex-bridge** - AI code generation (requires extended timeout)
|
|
269
274
|
- **deepwiki** - GitHub repository intelligence
|
|
270
275
|
|
|
271
|
-
|
|
276
|
+
During `mapify init`, two configuration files are created:
|
|
277
|
+
- **`.mcp.json`** - Project-level Claude Code MCP server registration (standard format)
|
|
278
|
+
- **`.claude/mcp_config.json`** - Internal MAP Framework agent-to-MCP mappings
|
|
279
|
+
|
|
280
|
+
If `.mcp.json` already exists, `mapify init` will merge new servers without overwriting your existing configuration.
|
|
272
281
|
|
|
273
282
|
**See [ARCHITECTURE.md](docs/ARCHITECTURE.md#mcp-integration) for complete setup and usage patterns**
|
|
274
283
|
|
|
275
284
|
## 📚 Usage Examples
|
|
276
285
|
|
|
277
286
|
```bash
|
|
278
|
-
# Feature development
|
|
279
|
-
/map-
|
|
287
|
+
# Feature development (recommended)
|
|
288
|
+
/map-efficient implement user profile page with avatar upload
|
|
280
289
|
|
|
281
290
|
# Bug fixing
|
|
282
291
|
/map-debug debug why payment processing fails for amounts over $1000
|
|
283
292
|
|
|
284
|
-
#
|
|
285
|
-
/map-
|
|
293
|
+
# After completing work, optionally preserve learnings
|
|
294
|
+
/map-learn Implemented user profile with avatar. Files: profile.py, upload.py.
|
|
295
|
+
Used pre-signed S3 URLs. Iterations: 2.
|
|
286
296
|
```
|
|
287
297
|
|
|
288
298
|
**See [USAGE.md](docs/USAGE.md) for:**
|
|
@@ -293,13 +303,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
293
303
|
|
|
294
304
|
## 🎓 ACE Playbook
|
|
295
305
|
|
|
296
|
-
Built-in learning system that improves
|
|
306
|
+
Built-in learning system that improves when you run `/map-learn`:
|
|
297
307
|
|
|
298
308
|
- **Reflector** extracts patterns from successes and failures
|
|
299
309
|
- **Curator** maintains structured knowledge base with quality tracking
|
|
300
310
|
- **Semantic search** (optional) finds patterns by meaning, not keywords
|
|
301
311
|
- **Dependency validation** ensures valid task graphs before execution
|
|
302
|
-
-
|
|
312
|
+
- High-quality patterns sync to cipher for cross-project reuse
|
|
313
|
+
|
|
314
|
+
**Note:** Learning is optional and triggered via `/map-learn` command after workflows.
|
|
303
315
|
|
|
304
316
|
### Playbook Commands
|
|
305
317
|
|
|
@@ -350,7 +362,7 @@ Error: Slash command not recognized
|
|
|
350
362
|
|
|
351
363
|
**Solution:**
|
|
352
364
|
- Ensure you're in a directory with `.claude/commands/` containing `map-*.md` files
|
|
353
|
-
-
|
|
365
|
+
- Available commands: `/map-efficient`, `/map-debug`, `/map-fast`, `/map-learn`, `/map-release`
|
|
354
366
|
- Run `/help` to see available commands
|
|
355
367
|
|
|
356
368
|
### Agent Not Found
|
|
@@ -17,23 +17,20 @@ Implementation of **Modular Agentic Planner (MAP)** — a cognitive architecture
|
|
|
17
17
|
### Inside Claude Code (Recommended)
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
#
|
|
21
|
-
/map-feature implement user authentication with JWT tokens
|
|
22
|
-
|
|
23
|
-
# ⭐ RECOMMENDED: Efficient workflow (30-40% token savings, preserves learning)
|
|
20
|
+
# ⭐ RECOMMENDED: Efficient workflow (40-50% token savings)
|
|
24
21
|
/map-efficient implement user profile page with avatar upload
|
|
25
22
|
|
|
26
23
|
# Debugging
|
|
27
24
|
/map-debug fix the API 500 error on login endpoint
|
|
28
25
|
|
|
29
|
-
# Refactoring
|
|
30
|
-
/map-refactor refactor UserService class with dependency injection
|
|
31
|
-
|
|
32
|
-
# Code review
|
|
33
|
-
/map-review review the recent changes in auth.py
|
|
34
|
-
|
|
35
26
|
# ⚠️ Fast workflow (40-50% savings, NO learning - throwaway code only)
|
|
36
27
|
/map-fast prototype a quick API endpoint mockup
|
|
28
|
+
|
|
29
|
+
# 📚 Optional: Preserve learnings from any workflow
|
|
30
|
+
/map-learn [paste workflow summary to extract patterns]
|
|
31
|
+
|
|
32
|
+
# 📦 Release workflow (for package maintainers)
|
|
33
|
+
/map-release patch # or: minor, major
|
|
37
34
|
```
|
|
38
35
|
|
|
39
36
|
### Command Line Usage
|
|
@@ -46,7 +43,7 @@ cd your-project
|
|
|
46
43
|
claude
|
|
47
44
|
|
|
48
45
|
# Use slash commands inside Claude Code
|
|
49
|
-
/map-
|
|
46
|
+
/map-efficient implement user authentication with JWT tokens
|
|
50
47
|
```
|
|
51
48
|
|
|
52
49
|
**Note:** Direct `claude --agents` syntax is not applicable to MAP Framework, as the orchestration logic is implemented in slash command prompts (`.claude/commands/map-*.md`), not as a separate agent file.
|
|
@@ -73,7 +70,6 @@ mapify init
|
|
|
73
70
|
mapify --help # Show all available commands
|
|
74
71
|
mapify validate graph <file> # Validate task dependency graphs
|
|
75
72
|
mapify playbook search <query> # Search playbook patterns
|
|
76
|
-
mapify recitation get-context # Get current task plan
|
|
77
73
|
```
|
|
78
74
|
|
|
79
75
|
**Version Pinning:**
|
|
@@ -110,27 +106,28 @@ pip install -e .
|
|
|
110
106
|
|
|
111
107
|
## 🔀 Workflow Variants
|
|
112
108
|
|
|
113
|
-
MAP Framework offers
|
|
109
|
+
MAP Framework offers workflow variants optimized for different scenarios:
|
|
114
110
|
|
|
115
111
|
| Command | Token Usage | Learning | Quality Gates | Best For |
|
|
116
112
|
|---------|-------------|----------|---------------|----------|
|
|
117
|
-
| **`/map-
|
|
118
|
-
| **`/map-
|
|
119
|
-
| **`/map-fast`** ⚠️ | 50
|
|
113
|
+
| **`/map-efficient`** ⭐ | **50-60%** | Optional via `/map-learn` | ✅ Essential agents | **RECOMMENDED: Most production tasks** |
|
|
114
|
+
| **`/map-debug`** | 50-60% | Optional via `/map-learn` | ✅ Essential agents | Bug fixes and debugging |
|
|
115
|
+
| **`/map-fast`** ⚠️ | 40-50% | ❌ None | ⚠️ Basic only | Throwaway prototypes, experiments (NOT production) |
|
|
116
|
+
| **`/map-learn`** | ~5-8K tokens | ✅ Full | Reflector + Curator | Capture patterns after any workflow |
|
|
117
|
+
| **`/map-release`** | Variable | Optional via `/map-learn` | 12 validation gates | Package releases |
|
|
120
118
|
|
|
121
119
|
### Which Workflow Should You Use?
|
|
122
120
|
|
|
123
121
|
**Use `/map-efficient` (RECOMMENDED) when:**
|
|
124
122
|
- ✅ Building production features where token costs matter
|
|
125
123
|
- ✅ Well-understood tasks with low to medium risk
|
|
126
|
-
- ✅ You want learning without excessive token usage
|
|
127
124
|
- ✅ Iterative development with frequent workflows
|
|
125
|
+
- ✅ Run `/map-learn` afterward if you want to preserve patterns
|
|
128
126
|
|
|
129
|
-
**Use `/map-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
- 🔒 You need complete quality assurance and impact analysis
|
|
127
|
+
**Use `/map-debug` when:**
|
|
128
|
+
- 🔧 Fixing bugs or investigating errors
|
|
129
|
+
- 🔧 Root cause analysis needed
|
|
130
|
+
- 🔧 Systematic debugging approach required
|
|
134
131
|
|
|
135
132
|
**Use `/map-fast` (minimal) ONLY when:**
|
|
136
133
|
- 🗑️ Creating throwaway prototypes you'll discard
|
|
@@ -138,6 +135,11 @@ MAP Framework offers three workflow variants optimized for different scenarios:
|
|
|
138
135
|
- 🗑️ Learning/tutorial contexts where failure is acceptable
|
|
139
136
|
- ⚠️ **NEVER for production code** - no learning, quality risks
|
|
140
137
|
|
|
138
|
+
**Use `/map-learn` after any workflow:**
|
|
139
|
+
- 📚 To preserve valuable patterns discovered during work
|
|
140
|
+
- 📚 When implementation approach could help future tasks
|
|
141
|
+
- 📚 To update playbook and cross-project cipher knowledge
|
|
142
|
+
|
|
141
143
|
### 🎯 Auto-Activation System
|
|
142
144
|
|
|
143
145
|
**Don't remember which workflow to use?** MAP automatically suggests the right workflow based on your request!
|
|
@@ -147,10 +149,10 @@ Just describe your task naturally - no need to remember slash commands:
|
|
|
147
149
|
| Your Request | MAP Suggests | Why |
|
|
148
150
|
|--------------|--------------|-----|
|
|
149
151
|
| "Fix the failing tests" | `/map-debug` | Keywords: fix, failing test |
|
|
150
|
-
| "Implement user login" | `/map-
|
|
152
|
+
| "Implement user login" | `/map-efficient` | Keywords: implement, feature |
|
|
151
153
|
| "Optimize database queries" | `/map-efficient` | Keywords: optimize |
|
|
152
|
-
| "Restructure auth module" | `/map-refactor` | Keywords: restructure |
|
|
153
154
|
| "Quick prototype for testing" | `/map-fast` | Keywords: quick, prototype |
|
|
155
|
+
| "Save patterns from last task" | `/map-learn` | Keywords: save, patterns, learn |
|
|
154
156
|
|
|
155
157
|
**How it works:**
|
|
156
158
|
1. Start typing your request normally
|
|
@@ -166,17 +168,21 @@ Edit `.claude/workflow-rules.json` to add project-specific trigger words and pat
|
|
|
166
168
|
|
|
167
169
|
**`/map-efficient` optimizations:**
|
|
168
170
|
- **Conditional Predictor**: Only called for high-risk tasks (security, breaking changes)
|
|
169
|
-
- **Batched Learning**: Reflector/Curator run once at end (vs per-subtask)
|
|
170
171
|
- **Evaluator Skipped**: Monitor provides sufficient validation for most tasks
|
|
171
|
-
- **
|
|
172
|
+
- **Learning Optional**: Run `/map-learn` separately to capture patterns
|
|
173
|
+
- **Result**: 40-50% token savings with essential quality gates
|
|
172
174
|
|
|
173
175
|
**`/map-fast` limitations:**
|
|
174
176
|
- ❌ No impact analysis (Predictor skipped)
|
|
175
177
|
- ❌ No quality scoring (Evaluator skipped)
|
|
176
178
|
- ❌ No learning (Reflector/Curator skipped)
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
-
|
|
179
|
+
- 💡 Can add learning retroactively via `/map-learn`
|
|
180
|
+
|
|
181
|
+
**`/map-learn` benefits:**
|
|
182
|
+
- ✅ Calls Reflector to extract patterns from workflow
|
|
183
|
+
- ✅ Calls Curator to update playbook
|
|
184
|
+
- ✅ Syncs high-quality bullets to cipher (cross-project knowledge)
|
|
185
|
+
- ✅ Run after any workflow when patterns are worth preserving
|
|
180
186
|
|
|
181
187
|
**See [USAGE.md](docs/USAGE.md#workflow-variants) for detailed decision guide and real-world token usage examples.**
|
|
182
188
|
|
|
@@ -189,7 +195,7 @@ MAP includes interactive skills that provide specialized guidance:
|
|
|
189
195
|
**Auto-suggested when you ask:**
|
|
190
196
|
- "Which workflow should I use?"
|
|
191
197
|
- "What's the difference between workflows?"
|
|
192
|
-
- "When to use /map-efficient vs /map-
|
|
198
|
+
- "When to use /map-efficient vs /map-fast?"
|
|
193
199
|
|
|
194
200
|
**What you get:**
|
|
195
201
|
- Quick decision tree (5 questions → recommended workflow)
|
|
@@ -235,24 +241,28 @@ MAP uses MCP (Model Context Protocol) servers for enhanced capabilities:
|
|
|
235
241
|
- **claude-reviewer** - Professional code review with security analysis
|
|
236
242
|
- **context7** - Up-to-date library documentation
|
|
237
243
|
- **sequential-thinking** - Chain-of-thought reasoning for complex problems
|
|
238
|
-
- **codex-bridge** - AI code generation (requires extended timeout)
|
|
239
244
|
- **deepwiki** - GitHub repository intelligence
|
|
240
245
|
|
|
241
|
-
|
|
246
|
+
During `mapify init`, two configuration files are created:
|
|
247
|
+
- **`.mcp.json`** - Project-level Claude Code MCP server registration (standard format)
|
|
248
|
+
- **`.claude/mcp_config.json`** - Internal MAP Framework agent-to-MCP mappings
|
|
249
|
+
|
|
250
|
+
If `.mcp.json` already exists, `mapify init` will merge new servers without overwriting your existing configuration.
|
|
242
251
|
|
|
243
252
|
**See [ARCHITECTURE.md](docs/ARCHITECTURE.md#mcp-integration) for complete setup and usage patterns**
|
|
244
253
|
|
|
245
254
|
## 📚 Usage Examples
|
|
246
255
|
|
|
247
256
|
```bash
|
|
248
|
-
# Feature development
|
|
249
|
-
/map-
|
|
257
|
+
# Feature development (recommended)
|
|
258
|
+
/map-efficient implement user profile page with avatar upload
|
|
250
259
|
|
|
251
260
|
# Bug fixing
|
|
252
261
|
/map-debug debug why payment processing fails for amounts over $1000
|
|
253
262
|
|
|
254
|
-
#
|
|
255
|
-
/map-
|
|
263
|
+
# After completing work, optionally preserve learnings
|
|
264
|
+
/map-learn Implemented user profile with avatar. Files: profile.py, upload.py.
|
|
265
|
+
Used pre-signed S3 URLs. Iterations: 2.
|
|
256
266
|
```
|
|
257
267
|
|
|
258
268
|
**See [USAGE.md](docs/USAGE.md) for:**
|
|
@@ -263,13 +273,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
263
273
|
|
|
264
274
|
## 🎓 ACE Playbook
|
|
265
275
|
|
|
266
|
-
Built-in learning system that improves
|
|
276
|
+
Built-in learning system that improves when you run `/map-learn`:
|
|
267
277
|
|
|
268
278
|
- **Reflector** extracts patterns from successes and failures
|
|
269
279
|
- **Curator** maintains structured knowledge base with quality tracking
|
|
270
280
|
- **Semantic search** (optional) finds patterns by meaning, not keywords
|
|
271
281
|
- **Dependency validation** ensures valid task graphs before execution
|
|
272
|
-
-
|
|
282
|
+
- High-quality patterns sync to cipher for cross-project reuse
|
|
283
|
+
|
|
284
|
+
**Note:** Learning is optional and triggered via `/map-learn` command after workflows.
|
|
273
285
|
|
|
274
286
|
### Playbook Commands
|
|
275
287
|
|
|
@@ -320,7 +332,7 @@ Error: Slash command not recognized
|
|
|
320
332
|
|
|
321
333
|
**Solution:**
|
|
322
334
|
- Ensure you're in a directory with `.claude/commands/` containing `map-*.md` files
|
|
323
|
-
-
|
|
335
|
+
- Available commands: `/map-efficient`, `/map-debug`, `/map-fast`, `/map-learn`, `/map-release`
|
|
324
336
|
- Run `/help` to see available commands
|
|
325
337
|
|
|
326
338
|
### Agent Not Found
|