AgentSkillsCN

oberhack

适用于小型功能的快速开发模式。在内存中进行迷你规划,随后直接调用子代理执行。无需计划文件、无需检查清单、无需设置检查点——只需理解需求、下达指令、完成任务。当用户说“快速搞定”“直接上手做”“临时拼凑一下”“做个原型”“快速实现某个功能”,或当任务范围明确且较小(1–2个文件、单一关注点),且用户更注重速度而非繁琐流程时使用。但不适用于多阶段任务、架构决策,或任何需要用户确认的场景。

SKILL.md
--- frontmatter
name: oberhack
description: Quick hack mode for small features. Mini planning in-memory, then direct subagent execution. No plan files, no checklists, no checkpoints - just understand, dispatch, done. Use when user says "quick hack", "just build it", "hack this together", "prototype", "quick feature", or when scope is clearly small (1-2 files, single concern) and user wants speed over ceremony. NOT for multi-phase work, architectural decisions, or anything needing user confirmation.

Skill: oberhack

code
GROK → DISPATCH → DONE

No files. No checklists. Mini-plan in your head, fire subagents, ship it.


Workflow

1. GROK (30 sec max)

Mental checklist - don't write this down:

  • Feature in one sentence?
  • Which files?
  • Minimum viable approach?
  • Gotchas?

If you can't grok it in 30 seconds, escalate to oberplan.

2. DISPATCH

TaskSubagentModel
Code changesgeneral-purposesonnet
Quick explorationExplorehaiku
Parallel tasksmultiple general-purposehaiku

Prompt template:

code
Task(
  subagent_type="general-purpose",
  model="haiku",
  description="Hack: [3-5 words]",
  prompt="[What to build - 1-2 sentences]
  [Context if needed]
  [Files if known]
  Return: FILES touched, SUMMARY 1 sentence"
)

Parallel dispatch - fire multiple in one message:

code
Task(description="Hack: part A", ...)
Task(description="Hack: part B", ...)

3. SANITY

Quick gut check. Build passes? Tests pass? Ship it.

ProblemAction
Subagent confusedRe-dispatch clearer
Bigger than expectedEscalate to oberplan
Failed twiceEscalate to oberplan

Examples

Add a button

code
User: "hack in a logout button"

GROK: Logout button in Header.tsx, wire to auth.logout()

DISPATCH:
Task(
  subagent_type="general-purpose",
  model="haiku",
  description="Hack: logout button",
  prompt="Add logout button to src/components/Header.tsx.
  Wire to auth logout. Match existing styles.
  Return FILES, SUMMARY."
)

SANITY: Build passes. Done.

Parallel changes

code
User: "add created_at to users and orders"

GROK: Timestamp on both tables, parallel, no ordering

DISPATCH (parallel):
Task(model="haiku", description="Hack: users timestamp",
  prompt="Add created_at to users table. Migration + model.")
Task(model="haiku", description="Hack: orders timestamp",
  prompt="Add created_at to orders table. Migration + model.")

SANITY: Run migrations. Done.

Escalate to oberplan when:

  • Can't grok in 30 seconds
  • Need to ask 3+ questions
  • Affects multiple systems
  • Not sure about approach
  • Subagent failed twice
  • User needs to confirm decisions

oberhack is for when you know what to do. If you don't, plan first.


Integration

  • oberagent: Skip for trivial hacks, use for anything non-obvious
  • oberplan: Escalate when scope exceeds "quick"
  • oberdebug: Switch if hack reveals bugs