xiaohongshu
xiaohongshu
map-planning
Implements file-based planning for MAP Framework workflows with branch-scoped task tracking in .map/ directory. Prevents goal drift via automatic plan synchronization before tool use and validates completion state on exit.
Full skill instructions
Implements Manus-style file-based planning adapted for MAP Framework workflows. Uses branch-scoped persistent files to track goals, tasks, progress, and learnings across agent sessions.
Instead of relying solely on conversation context (limited window), this skill externalizes planning artifacts to the filesystem. The agent reads/writes structured files that survive context resets, enable progress resumption, and provide explicit traceability.
Key Principle: Filesystem as Extended Memory
All files reside in .map/ directory with branch-based naming:
.map/
├── task_plan_<branch>.md # Primary plan with phases and status
├── findings_<branch>.md # Research findings, decisions, key files
└── progress_<branch>.md # Action log, errors, test results
Example: On branch feature-auth:
.map/task_plan_feature-auth.md.map/findings_feature-auth.md.map/progress_feature-auth.mdRuns show-focus.sh → extracts only the in_progress section (~200 tokens) and displays Goal + current phase. Purpose: Re-anchors agent to original goal before taking action, prevents goal drift.
Runs check-complete.sh → validates all phases have terminal state before allowing exit.
Terminal States: complete, blocked, won't_do, superseded
# Task Plan: <Brief Title>
## Goal
<One sentence describing end state>
## Current Phase
ST-001
## Phases
### ST-001: <Title>
**Status:** in_progress
Risk: low|medium|high
Complexity: 1-10
Files: <paths>
Validation:
- [ ] <criterion 1>
- [ ] <criterion 2>
### ST-002: <Title>
**Status:** pending
...
## Terminal State
**Status:** pending
Reason: [Not yet complete]
${CLAUDE_PLUGIN_ROOT}/scripts/init-session.sh
Creates .map/ directory and skeleton files for current branch.
Log errors to progress_<branch>.md after attempt 3+. After 3 failed attempts:
blocked, move to next subtaskblocked, exitUpdate ## Terminal State with final status before exiting. Stop hook validates this.
When /map-efficient runs:
init-session.sh creates .map/ skeletonstatus_update field/map-fast skips planning — hooks are no-op if plan missing.
Only Monitor agent updates task_plan status (via status_update output field).
| Agent | Read task_plan | Write task_plan |
|---|---|---|
| task-decomposer | No | Yes (creates) |
| Actor | Yes | No |
| Monitor | Yes | Yes (status only) |
| Predictor | Yes | No |
| Orchestrator | Yes | No (applies Monitor output) |
Why: Prevents race conditions, ensures consistent state, clear ownership.
blocked as soon as blocker identified| Issue | Fix |
|---|---|
| Plan not found | Run init-session.sh |
| Stop hook warns "No terminal state" | Update ## Terminal State section |
Branch name with / | Scripts sanitize: feature/auth → feature-auth |
| State | When |
|---|---|
complete | All phases finished, criteria met |
blocked | Needs external input (human, resource) |
won't_do | Task intentionally cancelled |
superseded | Replaced by different approach |
Version: 1.0.0 (2025-01-10)
References:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience