mapify-cli 1.6.1__tar.gz → 1.7.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.1 → mapify_cli-1.7.0}/.gitignore +5 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/PKG-INFO +47 -39
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/README.md +46 -38
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/pyproject.toml +1 -1
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/__init__.py +75 -355
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/entity_extractor.py +1 -1
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/graph_query.py +6 -4
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/playbook_manager.py +36 -24
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/relationship_detector.py +3 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/semantic_search.py +4 -4
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/actor.md +4 -36
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/evaluator.md +2 -2
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/predictor.md +29 -71
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/commands/map-debug.md +19 -95
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/commands/map-efficient.md +69 -185
- mapify_cli-1.7.0/src/mapify_cli/templates/commands/map-learn.md +463 -0
- mapify_cli-1.7.0/src/mapify_cli/templates/commands/map-release.md +1279 -0
- mapify_cli-1.7.0/src/mapify_cli/templates/commands/map-review.md +149 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/suggest_skill.py +2 -1
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/suggest_workflow.py +2 -1
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/settings.json +18 -1
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-cli-reference/SKILL.md +1 -24
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/tools/validate_dependencies.py +4 -2
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/workflow_logger.py +2 -2
- mapify_cli-1.6.1/src/mapify_cli/recitation_manager.py +0 -963
- mapify_cli-1.6.1/src/mapify_cli/templates/commands/map-feature.md +0 -517
- mapify_cli-1.6.1/src/mapify_cli/templates/commands/map-refactor.md +0 -342
- mapify_cli-1.6.1/src/mapify_cli/templates/commands/map-review.md +0 -36
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/.claude/hooks/README.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/.claude/skills/README.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/docs/cipher-setup-guide/README.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/contradiction_detector.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/playbook_query.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/schemas.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/curator.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/documentation-reviewer.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/monitor.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/reflector.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/agents/task-decomposer.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/commands/map-fast.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/README.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/__init__.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/inject_playbook_bullets.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/quality_gates.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/helpers/validate_checkpoint_file.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/improve-prompt.py +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/session-start.sh +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/stop.sh +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/tests/test_auto_activation.sh +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/user-prompt-submit.sh +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/hooks/validate-agent-templates.sh +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/settings.hooks.json +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/README.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/SKILL.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/agent-architecture.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/cipher-integration.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-debug-deep-dive.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-efficient-deep-dive.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-fast-deep-dive.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-feature-deep-dive.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/map-refactor-deep-dive.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/map-workflows-guide/resources/playbook-system.md +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/skills/skill-rules.json +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.0}/src/mapify_cli/templates/workflow-rules.json +0 -0
- {mapify_cli-1.6.1 → mapify_cli-1.7.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: 1.
|
|
3
|
+
Version: 1.7.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,7 +271,6 @@ 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
|
Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
@@ -275,14 +280,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
275
280
|
## 📚 Usage Examples
|
|
276
281
|
|
|
277
282
|
```bash
|
|
278
|
-
# Feature development
|
|
279
|
-
/map-
|
|
283
|
+
# Feature development (recommended)
|
|
284
|
+
/map-efficient implement user profile page with avatar upload
|
|
280
285
|
|
|
281
286
|
# Bug fixing
|
|
282
287
|
/map-debug debug why payment processing fails for amounts over $1000
|
|
283
288
|
|
|
284
|
-
#
|
|
285
|
-
/map-
|
|
289
|
+
# After completing work, optionally preserve learnings
|
|
290
|
+
/map-learn Implemented user profile with avatar. Files: profile.py, upload.py.
|
|
291
|
+
Used pre-signed S3 URLs. Iterations: 2.
|
|
286
292
|
```
|
|
287
293
|
|
|
288
294
|
**See [USAGE.md](docs/USAGE.md) for:**
|
|
@@ -293,13 +299,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
293
299
|
|
|
294
300
|
## 🎓 ACE Playbook
|
|
295
301
|
|
|
296
|
-
Built-in learning system that improves
|
|
302
|
+
Built-in learning system that improves when you run `/map-learn`:
|
|
297
303
|
|
|
298
304
|
- **Reflector** extracts patterns from successes and failures
|
|
299
305
|
- **Curator** maintains structured knowledge base with quality tracking
|
|
300
306
|
- **Semantic search** (optional) finds patterns by meaning, not keywords
|
|
301
307
|
- **Dependency validation** ensures valid task graphs before execution
|
|
302
|
-
-
|
|
308
|
+
- High-quality patterns sync to cipher for cross-project reuse
|
|
309
|
+
|
|
310
|
+
**Note:** Learning is optional and triggered via `/map-learn` command after workflows.
|
|
303
311
|
|
|
304
312
|
### Playbook Commands
|
|
305
313
|
|
|
@@ -350,7 +358,7 @@ Error: Slash command not recognized
|
|
|
350
358
|
|
|
351
359
|
**Solution:**
|
|
352
360
|
- Ensure you're in a directory with `.claude/commands/` containing `map-*.md` files
|
|
353
|
-
-
|
|
361
|
+
- Available commands: `/map-efficient`, `/map-debug`, `/map-fast`, `/map-learn`, `/map-release`
|
|
354
362
|
- Run `/help` to see available commands
|
|
355
363
|
|
|
356
364
|
### 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,7 +241,6 @@ 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
|
Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
@@ -245,14 +250,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
245
250
|
## 📚 Usage Examples
|
|
246
251
|
|
|
247
252
|
```bash
|
|
248
|
-
# Feature development
|
|
249
|
-
/map-
|
|
253
|
+
# Feature development (recommended)
|
|
254
|
+
/map-efficient implement user profile page with avatar upload
|
|
250
255
|
|
|
251
256
|
# Bug fixing
|
|
252
257
|
/map-debug debug why payment processing fails for amounts over $1000
|
|
253
258
|
|
|
254
|
-
#
|
|
255
|
-
/map-
|
|
259
|
+
# After completing work, optionally preserve learnings
|
|
260
|
+
/map-learn Implemented user profile with avatar. Files: profile.py, upload.py.
|
|
261
|
+
Used pre-signed S3 URLs. Iterations: 2.
|
|
256
262
|
```
|
|
257
263
|
|
|
258
264
|
**See [USAGE.md](docs/USAGE.md) for:**
|
|
@@ -263,13 +269,15 @@ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
|
|
|
263
269
|
|
|
264
270
|
## 🎓 ACE Playbook
|
|
265
271
|
|
|
266
|
-
Built-in learning system that improves
|
|
272
|
+
Built-in learning system that improves when you run `/map-learn`:
|
|
267
273
|
|
|
268
274
|
- **Reflector** extracts patterns from successes and failures
|
|
269
275
|
- **Curator** maintains structured knowledge base with quality tracking
|
|
270
276
|
- **Semantic search** (optional) finds patterns by meaning, not keywords
|
|
271
277
|
- **Dependency validation** ensures valid task graphs before execution
|
|
272
|
-
-
|
|
278
|
+
- High-quality patterns sync to cipher for cross-project reuse
|
|
279
|
+
|
|
280
|
+
**Note:** Learning is optional and triggered via `/map-learn` command after workflows.
|
|
273
281
|
|
|
274
282
|
### Playbook Commands
|
|
275
283
|
|
|
@@ -320,7 +328,7 @@ Error: Slash command not recognized
|
|
|
320
328
|
|
|
321
329
|
**Solution:**
|
|
322
330
|
- Ensure you're in a directory with `.claude/commands/` containing `map-*.md` files
|
|
323
|
-
-
|
|
331
|
+
- Available commands: `/map-efficient`, `/map-debug`, `/map-fast`, `/map-learn`, `/map-release`
|
|
324
332
|
- Run `/help` to see available commands
|
|
325
333
|
|
|
326
334
|
### Agent Not Found
|