بنقرة واحدة
linear-plan-feature
Create OpenSpec proposal for a new feature and await approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create OpenSpec proposal for a new feature and await approval
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
OpenBao/Vault credential seeding and management scripts
Comprehensive project health diagnostic — collects signals from CI tools, existing reports, deferred issues, and code markers into a prioritized finding report
Generate changelog entries and suggest semantic version bumps from git history
HTTP fallback bridge for coordinator when MCP transport is unavailable
| name | linear-plan-feature |
| description | Create OpenSpec proposal for a new feature and await approval |
| category | Git Workflow |
| tags | ["openspec","planning","proposal","linear"] |
| triggers | ["plan feature","plan a feature","design feature","propose feature","start planning","linear plan feature"] |
Create an OpenSpec proposal for a new feature. Ends when proposal is approved.
$ARGUMENTS - Feature description (e.g., "add user authentication")
Use OpenSpec-generated runtime assets first, then CLI fallback:
.claude/commands/opsx/*.md or .claude/skills/openspec-*/SKILL.md.codex/skills/openspec-*/SKILL.md.gemini/commands/opsx/*.toml or .gemini/skills/openspec-*/SKILL.mdopenspec CLI commandsUse docs/coordination-detection-template.md as the shared detection preamble.
CAN_* flag is trueAt skill start, run the coordination detection preamble and set:
COORDINATOR_AVAILABLECOORDINATION_TRANSPORT (mcp|http|none)CAN_LOCK, CAN_QUEUE_WORK, CAN_HANDOFF, CAN_MEMORY, CAN_GUARDRAILSIf CAN_HANDOFF=true, read recent handoff context:
read_handoff"<skill-base-dir>/../coordination-bridge/scripts/coordination_bridge.py" try_handoff_read(...)If CAN_MEMORY=true, recall relevant memories before planning:
recall"<skill-base-dir>/../coordination-bridge/scripts/coordination_bridge.py" try_recall(...)On handoff/memory failure, continue with standalone planning and log informationally.
The shared checkout is read-only — never commit or modify files there. All planning work happens in a feature-level worktree.
# Derive change-id from feature description (e.g., "add-user-auth")
python3 "<skill-base-dir>/../worktree/scripts/worktree.py" setup "<change-id>"
# Output: WORKTREE_PATH=...
cd $WORKTREE_PATH
# Verify you're in the worktree
git rev-parse --show-toplevel # Should match WORKTREE_PATH
git branch --show-current # Should be openspec/<change-id>
If the worktree already exists (e.g., from a previous session), reuse it. All subsequent steps happen inside the worktree.
Gather context from multiple sources concurrently using Task(Explore) agents:
# Launch parallel exploration agents (single message, multiple Task calls)
Task(subagent_type="Explore", prompt="Read openspec/project.md and summarize the project purpose, tech stack, and conventions", run_in_background=true)
Task(subagent_type="Explore", prompt="Run 'openspec list --specs' and summarize existing specifications and their requirement counts", run_in_background=true)
Task(subagent_type="Explore", prompt="Run 'openspec list' and identify any in-progress changes that might conflict or relate to: $ARGUMENTS", run_in_background=true)
Task(subagent_type="Explore", prompt="Search the codebase for existing implementations related to: $ARGUMENTS. Identify relevant files, patterns, and potential integration points", run_in_background=true)
Task(subagent_type="Explore", prompt="Read docs/architecture-analysis/architecture.summary.json and identify cross-layer flows, components, services, and tables related to: $ARGUMENTS. Report which existing flows would be affected and what parallel modification zones are available from docs/architecture-analysis/parallel_zones.json", run_in_background=true)
Context Synthesis:
docs/architecture-analysis/ artifactsUnderstand the current state before proposing changes.
Before creating artifacts, ensure architecture artifacts are current:
# If architecture artifacts are missing or stale relative to main, refresh them
if [ ! -f docs/architecture-analysis/architecture.summary.json ] || \
[ "$(git log -1 --format=%ct main)" -gt "$(stat -f %m docs/architecture-analysis/architecture.summary.json 2>/dev/null || echo 0)" ]; then
make architecture
fi
Preferred path:
opsx:ff/opsx:new equivalent for the active agent) to scaffold and create planning artifacts.CLI fallback path:
# 1) Create change scaffold
openspec new change "<change-id>"
# 2) Inspect artifact readiness
openspec status --change "<change-id>"
# 3) Generate artifacts in dependency order
openspec instructions proposal --change "<change-id>"
openspec instructions specs --change "<change-id>"
openspec instructions tasks --change "<change-id>"
# Optional when complexity warrants it
openspec instructions design --change "<change-id>"
Expected artifacts:
openspec/changes/<change-id>/proposal.mdopenspec/changes/<change-id>/tasks.mdopenspec/changes/<change-id>/specs/<capability>/spec.mdopenspec/changes/<change-id>/design.md# Strict validation
openspec validate <change-id> --strict
# Review the proposal
openspec show <change-id>
Fix any validation errors before presenting for approval.
Commit all planning artifacts to the feature branch and push:
git add openspec/changes/<change-id>/
git commit -m "plan: <change-id> — proposal, design, specs, tasks"
git push -u origin openspec/<change-id>
Pin the worktree so it persists for implementation:
python3 "<skill-base-dir>/../worktree/scripts/worktree.py" pin "<change-id>"
Share the proposal with stakeholders:
openspec/changes/<change-id>/proposal.md - What and whyopenspec/changes/<change-id>/tasks.md - Implementation planopenspec/changes/<change-id>/design.md - How (if applicable)If CAN_HANDOFF=true, write a completion handoff containing:
/iterate-on-plan or /implement-feature after approval)STOP HERE - Wait for approval before proceeding to implementation.
openspec/changes/<change-id>//implement-feature <change-id>After approval:
/implement-feature <change-id>