xiaohongshu
xiaohongshu
longplan
Autonomous multi-step work with dual-reviewer supervision (1A2A workflow) and compound engineering principles
Full skill instructions
Use this when the user requests /longplan.
Follow .claude/commands/longplan.md. If a step requires tools not
available, note the adaptation and proceed with the closest equivalent.
| Your Situation | Use This | Not These |
|---|---|---|
| Complex multi-step feature, 30+ min work | /longplan | /ralph (asset gen only) |
| Plan exists, stay in session, 5-10+ subagents | /longplan | executing-plans (new session) |
| Need plan + autonomous execution | /longplan | subagent-driven-development (plan required) |
| Debug/investigate first | Use systematic-debugging | Any execution skill |
Relationship to other skills:
ralph: ralph is for batch asset generation (tiles, sprites). /longplan is for complex features.executing-plans: Use that for parallel session (separate window). /longplan stays in this session.subagent-driven-development: That skill executes existing plans with fresh subagent per task + 2 reviewers.When working without human interaction during 2A phase:
.session_manifest.json)Remember: Checkpointing (clearing context) is NOT stopping. It's managing token budget to continue working.
Core Philosophy: Each unit of work should make future work easier.
This means every task should:
Reference: See docs/agent-instructions/COMPOUND_ENGINEERING.md for detailed compound engineering principles.
The key to velocity is parallelizing work across multiple subagents rather than doing everything sequentially. The main agent's job is orchestration, not execution.
Launch 5-15+ parallel agents in a single message by delegating independent subtasks:
Main Agent (Orchestrator):
→ Delegate to Agent 1: Research task A
→ Delegate to Agent 2: Research task B
→ Delegate to Agent 3: Implement feature X
→ Delegate to Agent 4: Implement feature Y
→ Delegate to Agent 5: Test integration
→ Delegate to Agent 6: Update documentation
→ Delegate to Agent 7: Generate assets
→ [Continue launching parallel agents...]
→ Aggregate results as they complete
→ Implement all changes in batch
CRITICAL for GLM-4.7: Checkpoint based on FILE OPERATIONS, not time or todo count.
Checkpoint triggers:
Checkpoint procedure:
Update plan file with checkpoint:
Clear API context properly:
# Option 1: Proper context clear sequence
/context clear
/context status # Verify it's actually cleared
# Option 2: Start completely fresh (most reliable)
- Close Kimi Code CLI completely
- Reopen and start new session
- Reference plan: @temp/autonomous-work-[task].md
Resume 2A phase:
Why this doesn't violate "keep working":
GLM-4.7 Specific Notes:
/clear command is BUGGY - use /context clear or restart session entirelyExample checkpoint format:
## Context Checkpoint [operation count]
### Operations Since Last Checkpoint
- Read: hermes_idle.tres, quest2_start.tres, daedalus_idle.tres (3)
- Write: act1_transformation_cutscene.tres, exile_cutscene.tres (2)
- Total: 5 operations → Checkpoint triggered
### Completed
- game/shared/resources/dialogues/act1_transformation_cutscene.tres - 64 lines
- game/shared/resources/dialogues/exile_cutscene.tres - 100 lines
### Current Todo
- Adding Daedalus mercy discussion dialogue
### Next 3 Todos
- Fix Aeetes character dialogue
- Add missing quest completion dialogues
- Implement missing choice branches
### Blockers
- None
### Critical State
- Quest 4 complete, met_daedalus flag set
- Next: act2_daedalus_mercy_discussion.tres
Quick Reference Card:
| Operation | Token Cost | Checkpoint After |
|---|---|---|
| Read file | ~1,000-2,000 | Count toward 5 total |
| Write file | ~1,500-2,000 | 3 writes = checkpoint |
| Edit file | ~500-1,000 | Count toward 5 total |
| Grep/Glob | ~100-500 | Negligible |
| TodoWrite | ~50-100 | Negligible |
| Bash (short) | ~100-500 | Negligible |
When in doubt: After creating 3 new dialogue files, ALWAYS checkpoint before continuing.
When to delegate:
Delegation tools:
Delegation strategy (Wave approach):
Real-world example (Seed Phase 8):
When stuck on a task:
What counts as "stuck":
What does NOT count as "stuck":
Core Rule: Work continuously without stopping for summaries.
DO:
DO NOT:
Only stop for HARD STOPS:
.cursor/ directoryEXCEPTION: If blocked, MUST follow troubleshoot-and-continue protocol first:
CRITICAL: Completion Criteria Enforcement
NEVER declare a task "complete" until ALL completion criteria are met:
BEFORE declaring done, verify:
□ All explicit success criteria from plan are satisfied
□ Visual quality gates passed (if applicable)
□ Narrative consistency verified (if applicable)
□ Time commitment fulfilled (if user specified duration)
□ No premature "good enough" declarations
Visual Quality Gates (for game/assets):
Narrative Consistency Gates (for dialogue/story):
Time Commitment Enforcement:
Compound Engineering Prevention: Document these anti-patterns to prevent recurrence:
Todo Quote for Reinforcement: Append to each autonomous todo task: "Remember: Skip around stuck tasks. Try 2-3 alternatives. Move to next todo. Circle back. Keep working. Do not make major repo changes unless approved. DO NOT STOP EARLY - complete all criteria first."
MiniMax Subagent Quote (REQUIRED when blocked): "BLOCKED? Spawn MiniMax subagent BEFORE stopping: Task(subagent_name='minimax-mcp', prompt='Help with: [problem]. Return specific solutions.'). Try all suggestions before considering user interruption."
Todo Quote for Reinforcement: Append to each autonomous todo task: "Remember: Skip around stuck tasks. Try 2-3 alternatives. Move to next todo. Circle back. Keep working. Do not make major repo changes unless approved."
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