Autonomous task implementation - research, plan, build, review, fix, ship
Executes full development lifecycle to implement tasks or plans autonomously.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-engineer@majestic-marketplace<task-reference or plan-file>workflows/Implement a task autonomously through the full development lifecycle.
<task_reference> $ARGUMENTS </task_reference>
Formats:
docs/plans/*.mddocs/plans/*.md → Blueprint file from /majestic:blueprint#123, PROJ-123, URL → Task reference (GitHub, Beads, Linear)--no-ship → Flag to skip shipping (used by run-blueprint for batch shipping)# If empty, find most recent plan
ls -t docs/plans/*.md 2>/dev/null | head -1
Parse --no-ship flag:
$ARGUMENTS contains --no-ship: Set skip_ship=true, remove flag from argumentsskip_ship=false| Input | Source | Skip Steps |
|---|---|---|
| Empty + plan found | plan | 1, 2, 5 |
*.md file path | plan | 1, 2, 5 |
| Task reference | task | (none) |
| Empty + no plan | Ask user | — |
For plans: Extract TASK_ID from filename slug, TITLE from first # heading.
Task (majestic-engineer:workflow:task-fetcher):
prompt: Task: <reference>
Task (majestic-engineer:workflow:task-status-updater):
prompt: Action: claim | Task: <ID>
Run /rename <task-title> to set the terminal title for visibility.
Read config values (run these 4 bash commands in parallel):
claude -p "/majestic:config workflow branches"claude -p "/majestic:config branch_naming issue-desc"claude -p "/majestic:config default_branch main"claude -p "/majestic:config workspace_setup.post_create ''"Then setup workspace:
Task (majestic-engineer:workflow:workspace-setup):
prompt: |
Task ID: <ID>
Title: <title>
Type: <type>
Workflow: <workflow>
Branch Naming: <branch_naming>
Default Branch: <default_branch>
Post-Create Hook: <post_create>
After workspace setup, verify we are NOT on a protected branch:
CURRENT_BRANCH=$(git branch --show-current)
| Current Branch | Action |
|---|---|
main | STOP - workspace setup failed |
master | STOP - workspace setup failed |
<default_branch> | STOP - workspace setup failed |
| Feature branch | Continue |
If on protected branch: STOP and report error. Do not proceed.
Task (majestic-engineer:workflow:toolbox-resolver):
prompt: |
Stage: build-task
Task Title: <title>
Task Description: <description>
Stores: build_agent, fix_agent, coding_styles, design_system_path, research_hooks, pre_ship_hooks, quality_gate.reviewers
For each mode: auto hook where triggers match task text:
Task (majestic-engineer:workflow:context-proxy):
prompt: agent: <hook.agent> | budget: 2000 | prompt: Research for: <title> | Context: <description>
If research agents returned outputs and combined output > 4000 chars:
/smart-compact before planningTask (majestic-engineer:workflow:context-proxy):
prompt: agent: architect | budget: 3000 | prompt: Task: <title> | Description: <description> | Research: <findings>
Note: Skip if source is plan - use plan file content instead.
Pass all gathered context to the build-task-workflow-manager agent:
agent build-task-workflow-manager "Task ID: <ID or 'plan'> | Title: <title> | Branch: <branch> | Plan: <plan content> | AC Path: <ac_path> | Build Agent: <build_agent> | Fix Agent: <fix_agent> | Coding Styles: <styles> | Design System Path: <path> | Pre-Ship Hooks: <hooks> | Quality Gate Reviewers: <reviewers> | Source: <task or plan> | Skip Ship: <skip_ship>"
AC Path determination:
| Source | AC Path Value |
|---|---|
| Plan file | The plan file path (e.g., docs/plans/20240115_feature.md) |
| GitHub Issue | #<number> or the full URL |
| Linear/Beads | The task ID (e.g., PROJ-123) |
| File-based task | The task file path |
The agent handles:
IMPORTANT: The workflow manager agent executes all build/verify/ship steps sequentially. Do not add additional steps after delegation - the agent handles everything through completion.
Task source:
## Build Complete: #<ID> - <title>
- Backend: <github|beads|linear>
- Branch: <branch>
- PR: #<number>
- Quality: Passed (attempt <n>)
- Next: PR awaits review, task closes on merge
Plan source:
## Build Complete: <title>
- Plan: <file-path>
- Branch: <branch>
- PR: #<number>
- Quality: Passed (attempt <n>)
- Next: PR awaits review
/majestic:build-task # Auto-detect recent plan
/majestic:build-task docs/plans/add-auth.md # Explicit plan
/majestic:build-task #42 # GitHub issue
/majestic:build-task PROJ-123 # Beads/Linear