跳到正文
FunCoding

octopus-quick

Quick execution for ad-hoc tasks without full workflow overhead — use for small, self-contained requests

Star
4,525
许可证
MIT
最近提交
2026年12月2日

codex-skills/octopus-quick/SKILL.md

在 GitHub 上查看

Host: Codex CLI — This skill was designed for Claude Code and adapted for Codex. Invoke installed skills by their $skill-name. Known Octopus commands are mapped below. A remaining /octo:* reference is a Claude Code command; do not execute it in Codex or invent an equivalent. Before the first helper call, derive the absolute plugin root from this loaded skill's path by finding its ancestor containing .codex-plugin/plugin.json. Verify that root, bind OCTO_ROOT, CODEX_PLUGIN_ROOT, and CLAUDE_PLUGIN_ROOT to the same root, and export all three in each fresh shell before launching child processes. Use the verified absolute helper path when needed. Do not infer the root from the user's project or assume exports survive tool calls. Stop and report a missing installation if the root cannot be verified. Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. Claude-native tool calls in examples are prompt templates to adapt, not Codex call signatures. If a mandatory verification agent or tool is unavailable or unauthorized, report that verification did not run and stop the affected completion step. Never claim a skipped check passed. Attribute commits only to actual contributors; do not copy fixed model attribution trailers from examples. For host tool equivalents, see codex-skills/blocks/codex-host-adapter.md.

Invoke this entry as $octopus-quick in Codex. Code-fenced Claude command examples are reference text, not Codex shell commands.

Quick Mode - Lightweight Task Execution ⚡

Fast-track execution for small tasks that don't need full Double Diamond workflow overhead.

When to Use Quick Mode

✅ Use Quick Mode For:

Bug Fixes:

  • One-file bug fixes with known solution
  • Typo corrections
  • Logic error fixes
  • Import/export corrections

Configuration Changes:

  • Update environment variables
  • Modify config files
  • Adjust settings
  • Update dependencies

Small Refactorings:

  • Rename variables/functions
  • Extract helper functions
  • Simplify logic in single file
  • Code cleanup

Documentation:

  • Fix typos in README
  • Update comments
  • Add/update docstrings
  • Clarify documentation

Dependency Management:

  • Update package versions
  • Add new dependency
  • Remove unused dependency

❌ Don't Use Quick Mode For:

Complex Work:

  • New features
  • Architecture changes
  • Multi-file refactorings
  • Security-sensitive changes
  • Performance optimizations requiring research
  • Database schema changes
  • API contract changes

Use full workflows for complex work to ensure quality.

Execution Flow

Quick mode follows a streamlined process:

User Request → Direct Implementation → Atomic Commit → Summary

What Quick Mode SKIPS:

  • ❌ Multi-AI research (probe/discover)
  • ❌ Requirements planning (grasp/define)
  • ❌ Multi-AI validation (ink/deliver)
  • ❌ Plan-checker verification

What Quick Mode KEEPS:

  • ✅ State tracking (records in state.json)
  • ✅ Atomic commits (git commit with description)
  • ✅ Summary generation (stored in .claude-octopus/quick/)
  • ✅ Change documentation

Usage

Via Command

/octo:quick "add dark mode toggle to settings"

Via Skill Invocation

Use skill: octopus-quick
Task: "fix typo in README.md line 42"

Examples

$octopus-quick "update Next.js to v15"
$octopus-quick "fix the broken import in auth.ts"
$octopus-quick "add error handling to login function"
$octopus-quick "remove console.log statements"

Implementation

Step 1: Understand the Task

Quickly assess:

  • What file(s) need to change?
  • What's the specific change?
  • Any dependencies or side effects?

Inspect the existing index and working-tree diff before editing. Select only task-owned paths. If a selected file already contains unrelated changes, use a deliberate partial-commit workflow instead of quick mode. Leave unrelated files and their staged changes intact.

Step 2: Make the Change

Implement directly using appropriate tools:

  • Edit - For modifying existing files
  • Write - For creating new files (rare in quick mode)
  • Bash - For file operations, dependency updates

Step 3: Create Atomic Commit

Always create a descriptive commit:

# Replace this array with the exact task-owned paths, including deletions.
QUICK_FILES=("path/to/task-file")
git --literal-pathspecs add -- "${QUICK_FILES[@]}" || exit 1

# Commit only those paths; preserve unrelated staged files in the index.
git --literal-pathspecs commit --only -m "quick: [brief description]

[Detailed explanation if needed]

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>" -- "${QUICK_FILES[@]}" || exit 1
git rev-parse --verify HEAD

Use the printed commit SHA when recording state and creating the summary.

If staging or committing fails, stop the workflow. Do not record successful execution, generate a completion summary, or report an earlier commit as this task's result. Preserve the edits for recovery.

Commit message format:

  • Prefix with quick: to indicate quick mode
  • Brief description in present tense
  • Optional detailed explanation
  • Co-authored tag

Step 4: Record in State

QUICK_COMMIT="<quick-commit-sha>"
quick_subject="$(git show --no-show-signature -s --format=%s "$QUICK_COMMIT" --)" || exit 1

# Update state with quick task execution
"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}/scripts/state-manager.sh" write_decision \
  "quick" \
  "$quick_subject" \
  "Ad-hoc task executed in quick mode" \
  "$QUICK_COMMIT"

# Update metrics
"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}/scripts/state-manager.sh" update_metrics \
  "execution_time" \
  "1"  # Estimated in minutes

Step 5: Generate Summary

Use the SHA recorded in Step 3 and set the task description to the user's request. Pass the description as a safely quoted shell string.

QUICK_COMMIT="<quick-commit-sha>"
TASK_DESCRIPTION="user task description"
quick_subject="$(git show --no-show-signature -s --format=%s "$QUICK_COMMIT" --)" || exit 1
quick_stat="$(git show --no-show-signature --format= --stat "$QUICK_COMMIT" --)" || exit 1
quick_files="$(git show --no-show-signature --format= --name-only "$QUICK_COMMIT" --)" || exit 1

mkdir -p .claude-octopus/quick || exit 1
summary_file=".claude-octopus/quick/$(date +%Y%m%d-%H%M%S)-summary.md"

cat > "$summary_file" <<EOF || exit 1
# Quick Task: $quick_subject

## Task Description
$TASK_DESCRIPTION

## Changes Made
$quick_stat

## Files Modified
$quick_files

## Commit
$QUICK_COMMIT

## Timestamp
$(date -u +%Y-%m-%dT%H:%M:%SZ)

*Executed in Quick Mode - minimal overhead execution*
EOF

echo "📝 Summary saved to: $summary_file"

Complete Example

User Request:

$octopus-quick "fix typo in README - change 'recieve' to 'receive'"

Execution:

  1. Read the file

    Read README.md to locate the typo
    
  2. Make the change

    Edit README.md: replace "recieve" with "receive"
    
  3. Commit atomically

    git --literal-pathspecs add -- README.md || exit 1
    git --literal-pathspecs commit --only -m "quick: fix typo in README (recieve → receive)
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>" -- README.md || exit 1
    git rev-parse --verify HEAD
    
  4. Record in state

    state-manager.sh write_decision "quick" \
      "Fixed typo in README" \
      "Ad-hoc documentation fix" \
      "<quick-commit-sha>"
    
  5. Generate summary

    Created: .claude-octopus/quick/20260129-143045-summary.md
    
  6. Report to user

    ✅ Fixed typo in README.md
    📝 Commit: abc123f
    📋 Summary: .claude-octopus/quick/20260129-143045-summary.md
    

Benefits of Quick Mode

Speed ⚡

  • No multi-AI orchestration overhead
  • Direct implementation
  • Faster for simple tasks

Cost Savings 💰

  • No external provider API calls
  • Only uses Claude (included with Claude Code)
  • Efficient for ad-hoc work

Still Tracked 📊

  • Commits recorded
  • State updated
  • Summaries generated
  • Full audit trail maintained

Appropriate Scope 🎯

  • Right tool for small tasks
  • Doesn't over-engineer simple changes
  • Reserves full workflows for complex work

When Quick Mode Isn't Enough

If during execution you realize the task is more complex than expected:

Stop and escalate to full workflow:

This task is more complex than anticipated. I recommend using the full
workflow instead:

- For research: $flow-discover "research authentication patterns"
- For planning: $flow-define "define auth requirements"
- For building: $flow-develop "implement auth system"
- For validation: $flow-deliver "validate auth implementation"

Would you like me to switch to a full workflow?

Indicators to escalate:

  • Multiple files need changes
  • Requires architectural decisions
  • Needs research or comparison
  • Security implications
  • Performance implications
  • Breaking changes

Directory Structure

Quick mode creates summaries in a dedicated directory:

.claude-octopus/
└── quick/
    ├── 20260129-143045-summary.md
    ├── 20260129-150122-summary.md
    └── 20260129-161530-summary.md

Each summary includes:

  • Task description
  • Changes made
  • Files modified
  • Commit hash
  • Timestamp

Comparison: Quick Mode vs Full Workflow

AspectQuick Mode ⚡Full Workflow 🐙
Time1-3 minutes5-15 minutes
CostClaude onlyClaude plus available external providers
Providers1 (Claude)Available provider fleet
ResearchNoneComprehensive
PlanningNoneDetailed
ValidationBasicMulti-AI review
Best ForSimple fixesComplex features
When to UseKnown solutionUnknown solution

Best Practices

DO:

  • ✅ Use quick mode for straightforward tasks
  • ✅ Create descriptive commit messages
  • ✅ Generate summaries for audit trail
  • ✅ Update state even in quick mode
  • ✅ Escalate to full workflow if complexity increases

DON'T:

  • ❌ Use quick mode for new features
  • ❌ Skip commits (always commit atomically)
  • ❌ Skip state updates (maintain consistency)
  • ❌ Use quick mode for security-sensitive changes
  • ❌ Force quick mode when full workflow is appropriate

Troubleshooting

"Quick mode is taking too long"

→ Task is probably too complex. Escalate to full workflow.

"Change broke tests"

→ Quick mode assumes simple, safe changes. Use full workflow for risky changes.

"Need to research best approach"

→ Quick mode is for known solutions only. Use $flow-discover for research.

"Multiple files need changes"

→ Consider $flow-develop for coordinated multi-file changes.

Summary

Quick mode is the right tool for simple, straightforward tasks with known solutions. It provides fast execution while maintaining essential tracking and documentation.

For everything else, use the full Double Diamond workflow to ensure quality through multi-AI orchestration.

Remember: Fast is good, but correct is better. When in doubt, use the full workflow.

相似的 Skill

rea-tool-design

MOmorluto/rea486k近 7 天新增 8,943 个 star

research

MAmattpocock/skills337k近 7 天新增 4,978 个 star

benchmark-methodology

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

brand

NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star

banner-design

NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star

mode-creator

THthedotmack/claude-mem121k近 7 天新增 1,626 个 star