xiaohongshu
xiaohongshu
land-the-plane
This skill should be used when the user says "let's land the plane", "land the plane", "end the session cleanly", "wrap up the session", or asks to prepare for a clean handoff between coding sessions. Provides a systematic protocol for ensuring all work is committed, tested, tracked, and ready fo...
Full skill instructions
This skill provides a clean session-ending protocol for software development work. "Landing the plane" ensures that when a coding session ends, all work is properly committed, tested, tracked in the issue system, and the repository is in a clean state. This systematic approach prevents lost work, maintains code quality, and creates smooth handoffs to future sessions.
Use this skill when:
Follow this seven-step protocol to land the plane cleanly:
Before ending the session, capture any remaining work that needs follow-up in the issue tracker. This prevents losing track of incomplete tasks, bugs discovered, or future improvements identified during the session.
Use the Beads CLI to create issues:
bd create "Issue title" -t task -p 2 --json
Document:
Reference: See references/beads-integration.md for detailed Beads CLI usage and issue management patterns.
Only if code changes were made during the session, run all quality gates to verify the code is in a good state. File P0 issues immediately if any gates fail.
Run quality checks in sequence:
Script: Use scripts/run-quality-gates.sh to execute quality checks systematically.
If any quality gate fails:
Review all issues worked on during the session and update their status to reflect current reality:
Keep issue tracking synchronized with actual work completed.
Work methodically to ensure both local and remote issue databases are merged safely. This step requires careful handling of potential conflicts between local and remote issue state.
The sync process:
Important: Be creative and patient during this step. Conflicts between local and remote state require careful reconciliation. The goal is clean reconciliation where no issues are lost.
Reference: See references/beads-integration.md for detailed sync strategies and conflict resolution patterns.
Clear old stashes and prune dead remote branches to maintain a clean repository state:
git stash clear # Remove old stashes
git remote prune origin # Clean up deleted remote branches
Script: Use scripts/cleanup-git.sh to perform git cleanup operations safely.
Warning: git stash clear permanently deletes all stashed changes. Only run this if you're certain stashed changes are no longer needed, or have been committed.
Confirm that all changes are committed and pushed, with no untracked files remaining:
git status # Should show clean working tree
git log origin/main..HEAD # Should show no unpushed commits
Script: Use scripts/check-git-state.sh to verify the repository is in a clean state.
A clean state means:
.env)If the state is not clean:
Provide a prompt for the user to give you in the next session. This creates continuity and makes it easy to resume work.
Format the continuation prompt as:
Continue work on bd-X: [issue title]. [Brief context about what's been done and what's next]
Example:
Continue work on bd-142: Add integration tests for sync. Implemented the sync logic and basic unit tests. Next: add integration tests covering conflict resolution scenarios.
This prompt gives the next session (or next developer) clear context about:
See examples/landing-session.sh for a complete example of landing the plane, including all seven steps with realistic command output.
Three validation scripts are provided to automate and verify key steps:
Validates that the git repository is in a clean state:
Run before ending the session to catch anything that needs attention.
Executes quality checks in sequence:
Customize the script for your project's specific quality gates.
Performs safe git cleanup operations:
Run to maintain repository hygiene at session end.
This skill is designed to work with the Beads issue tracking system via the bd CLI. Beads provides local-first issue tracking with sync capabilities.
Key Beads commands used in the protocol:
bd create - File new issuesbd update - Update issue statusbd close - Close completed issuesbd sync - Sync local and remote databasesReference: See references/beads-integration.md for comprehensive Beads CLI documentation, sync strategies, and common patterns.
Adapt this protocol to your workflow:
Quality gates: Modify scripts/run-quality-gates.sh to match your project's test/lint/build commands.
Issue tracker: While designed for Beads, adapt the protocol to work with GitHub Issues, Linear, Jira, or other trackers by replacing bd commands with appropriate CLI tools.
Skip steps: Not all steps apply to every session. For example, if no code was written, skip quality gates. Use judgment to apply the protocol pragmatically.
Automation: Consider creating a single "land" command that orchestrates the full protocol with appropriate prompts and confirmations.
Run quality gates before creating issues: Catch test/lint failures early so you can file them as issues rather than discovering them later.
Be thorough with issue filing: Future you (or your teammate) will appreciate detailed context about remaining work. Don't skimp on issue descriptions.
Don't skip the clean state check: It's easy to forget uncommitted changes or unpushed commits. The clean state check prevents losing work.
Make sync conflicts visible: When syncing issues, make conflicts explicit rather than silently choosing one version. Document resolution decisions.
Use the continuation prompt: The follow-up issue prompt is valuable for resuming work efficiently. Include enough context to jump back in without extensive investigation.
Quality gates fail: File a P0 issue with failure details. Consider reverting recent changes if the failure is blocking.
Merge conflicts during issue sync: Resolve carefully by examining both local and remote state. Prefer preserving both versions when in doubt.
Uncommitted changes at clean state check: Decide whether to commit, stash, or discard. Don't leave the session with uncommitted work unless intentional.
Can't push commits: Check for remote changes that need to be pulled first. Resolve merge conflicts if necessary.
For detailed Beads integration guidance:
references/beads-integration.md - Comprehensive Beads CLI documentation, sync strategies, conflict resolution patternsWorking examples in examples/:
landing-session.sh - Complete example showing all seven steps with realistic outputValidation and automation utilities in scripts/:
check-git-state.sh - Verify clean git repository staterun-quality-gates.sh - Execute tests, linters, buildscleanup-git.sh - Safe git cleanup operationsLanding the plane is about ending sessions with intention and care. By following this protocol, ensure that:
This systematic approach transforms chaotic session endings into smooth, professional handoffs.
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