AGENT SKILL

ask-develop

Develop: Drives normal implementation work in small, validated iterations. Use to add, fix, refactor, or build a feature when no more specific ASK skill fits.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 1
Forks
0

01 前言 Front Matter

name
ask-develop
default
true
triggers
[ "develop", "kaizen", "autopilot", "keep going", "continue without waiting", "do not stop", "don't stop", "ga door", "werk door", "volgende logische stap", "volgende stap", "start working", "start coding", "get started", "zonder te wachten", "niet stoppen", "gewoon doorgaan", "ga verder", "implement this", "fix this", "add this", "pas dit aan", "maak dit af", "implement", "implementeer dit", "keep coding", "continue implementation", "work through steps", "code change", "start implementing", "start implementation", "batch edits", "delegate work", "subagent", "maak dit werkend", "rewrite", "herbouw", "coordinator", "coördinator", "omwerken", "entity rewrite", "refactor", "code aanpassen", "werk dit bij", "build this", "development" ]
description
Develop: Drives normal implementation work in small, validated iterations. Use to add, fix, refactor, or build a feature when no more specific ASK skill fits.
execution_tier
standard
delegation_default
auto
disable-model-invocation
true

03 SKILL.md 正文

ASK Develop

Default to steady progress: inspect, create, test, review, continue. If the next logical step is clear, keep going without pausing for routine check-ins.

Mandatory style gate

Before any formatting or refactoring, inspect the active file, nearby user-authored code, .editorconfig, and language/tool configuration. Establish the repository's valid local style before invoking a tool. Use 240 characters as ASK's default C# maximum line width unless .editorconfig explicitly overrides it. Scope formatting to the intended language and file set, preserve valid compact code, newline brace placement, and workflow-boundary comments, and keep C#, XML, project files, and IDE configuration on separate paths. Keep fitting method signatures and calls compact instead of wrapping them to a generic width. If the style is ambiguous or a formatter would rewrite valid local style, stop and ask or constrain the tool; never apply generic defaults. Afterward, inspect a representative example and the complete Git tree for unintended generated output, including tracked bin/ or obj/ files. This is a hard gate, not a suggestion. On Windows, also follow the Windows / Git Bash rules below.

Before finishing any code change, inspect every changed function-like construct (functions, methods, callbacks, closures, and handlers) for the repository's required intent comment. Run its source-comment check when present. Do not defer or waive a missing required comment as a cosmetic review item.

Windows / Git Bash

  • Multi-line Python or text with backslashes, quotes, or $: write a script file with the Write tool and run it; inline heredocs silently change escapes ("\n" becomes a real newline) or fail on an apostrophe.
  • Use the OS-specific virtualenv interpreter (.venv/Scripts/python on Windows, .venv/bin/python elsewhere).
  • Run git status before and after bulk downloads; never download over a tracked path.
  • With autocrlf, some digest or fixture tests fail for environment reasons: record the failing-test baseline before editing.
  • A foreground sleep can be blocked; wait with a background run or monitor.

Choose the mode

  • Direct: known files, tight coupling, fast iteration, nuanced judgment
  • Delegate: independent research, parallelizable subtasks, noisy command runs, or specialized review
  • Delegate (staged): sequential dependency chain, each step with its own complexity. Step B builds on step A's output. The main agent orchestrates, validates each step, and only proceeds on green light.
  • Dynamic workflow: one script orchestrates many subagents (in Claude Code the Workflow tool and /workflows). Offer it instead of Delegate when the fit test in the Dynamic workflow section passes; it starts only after the user opts in.
  • Batch: related reads, searches, and edits that can be done safely together

Cheap-first escalation

  1. Routed skill work (this skill, debugging, improve) runs in the Sonnet ask-worker agent, not on the session model; a dynamic workflow is the exception: the coordinator offers it and, after the user opts in, starts it (see Dynamic workflow). Before each delegation, select a task-appropriate model and pass it per invocation when the host supports it; tiers alone do not select a model. Default to Haiku for mechanical work, Sonnet for standard work, and Opus only with a stated reason.
  2. Start bounded mechanical chores on the smallest viable agent or subagent.
  3. Validate the result before widening context.
  4. Escalate to default agent only if scope grows beyond the original bounded task.
  5. Escalate to default or xhigh only for cross-cutting, analysis-heavy, or repeatedly failing work, and only when a cheaper-tier attempt already produced evidence it cannot solve.

Execution tiers by task reasoning

Complexity Execution tier Claude model (user term) Fits
Mechanical, boilerplate, bounded parsing light Haiku (light) a data mapper, a register table, a factory
Nuanced but contained standard Sonnet (medium) one service with local state
Cross-cutting, implicit reasoning, error handling deep Opus (heavy), only with a stated reason discovery, coordination, recovery paths

Choose the lowest tier that fits; escalate only when evidence demands it. A delta fix or follow-up after a broader change is standard work, not a repeat of the original deep pass.

Staged delegation

Use when refactoring splits into dependent steps with mixed complexity (e.g. service-by-service refactor). Not for parallel work — use plain Delegate for that.

  1. Break work into ordered stages. Each stage builds on the previous one. No parallelism.
  2. Tag each stage with a complexity tier (light/standard/deep). See model tiering above.
  3. Dispatch stage N with the right execution tier. Output must contain the dependency for stage N+1.
  4. Validate. Does the output match scope? Tests green? If not: re-dispatch with a narrower scope instead of taking over yourself.
  5. Commit per stage on the work branch. Only proceed to stage N+1 on green.
  6. Re-dispatch on failure. Reformulate the subtask more specifically and dispatch again. Only do it yourself for trivial corrections.

Output contract per stage (see agent-workflows for the full contract):

  • Structured output, no narrative
  • Dependency for the next stage
  • Test results

Dynamic workflow

When the host can run dynamic workflows, check this before choosing Delegate. Dynamic workflow mode needs all four:

  1. Fan-out shape. About ten or more independent items get the same operation and each needs judgment (migrate every component, audit every endpoint, review every changed file), a check-and-fix loop runs over about ten or more independent failures, or many findings each need an independent cross-check. Fewer items, and purely mechanical edits that one Batch or scripted pass handles safely, stay Direct, Batch, or Delegate: a workflow costs far more than a conversation.
  2. Independent items. No two agents edit the same file; each owns a disjoint set or an isolated copy. Tightly coupled or sequential work stays Direct or staged.
  3. Settled scope. A run cannot ask the user mid-run, so decisions, acceptance, and the branch are settled first (load intake when they are not).
  4. Sized up front. State the expected agent count before launching, and for a large target run a one-directory slice first. Give each agent a chunk of items so the run stays within the host's size guideline, and ask the user before going above it.

Rules for a run:

  • Offer it; start it only after the user opts in. The host lets an agent start a run only when the user asked for one in their own words ("use a workflow"), typed ultracode, has ultracode on for the session, or ran a saved workflow. A task that merely fits does not count. When the fit test passes without that opt-in, tell the user in a few lines what the run would do, the expected agent count, the model tier per stage, and a rough cost, and ask whether to run it. In a non-interactive run, where no answer can come, continue in Delegate mode.
  • The coordinator makes the offer and starts the run. A worker cannot start agents or workflows; a worker that finds the work fits reports ASK_WORKFLOW_BLOCKED phase=EXECUTE with the item count and the reason, and the coordinator makes the offer. A coordinator that already sees the fit skips the worker.
  • Name a model per stage by tier (light for locate and extract, standard for edit and verify, deep only with a stated reason). A fan-out left on the session model multiplies the most expensive tier.
  • Return schema-shaped results (path, impact, severity, evidence), not prose, so only the final answer reaches the context.
  • Keep the host's approval prompt. It shows the phases and the script; never pre-approve or bypass it to start a run.
  • A workflow is EXECUTE and VALIDATE evidence. Its verifier agents cross-check findings; they do not replace the REVIEW or AUDIT the risk requires, which the coordinator still dispatches once on the final diff.
  • No workflow support: continue in Delegate mode and say so once.

See agent-workflows for the host mechanics, limits, and script patterns.

Core loop

  1. Plan if missing. Non-trivial task (3+ changes, multi-file, risky) without a plan? If scope is new or unclear, load intake first. Otherwise generate inline plan with todowrite or short bullets. Trivial 1-2 edits: skip. Resuming an existing plan: read its status frontmatter, checkboxes, and gate ledger (format in intake), mirror the open items into the host task list, and tick each in the list and the plan file in the same step when done.
  2. Inspect the next boundary that matters.
  3. Create the smallest coherent improvement. Add tests only within the test budget for the workflow risk (see verification): none for small work unless existing tests cannot prove the change. Write the failing test first only when the user or repository asks for TDD or strict tests.
  4. Test it with the fastest trustworthy proof.
  5. Run the broader validation needed for the claim, including integration or server checks when applicable.
  6. After validation, run only the review gates required by the workflow risk; small work ends after its targeted proof.
  7. Continue unless a real blocker or decision point appears.

Lifecycle handoff

For significant work, execute only after plan-check evidence exists. After implementation, request validation first. Once applicable checks pass, run the required final review; use an independent final audit for significant or release-sensitive workflows. Small workflows finish after targeted validation; normal workflows use one combined review. If a required review or audit finds an issue, fix it and rerun affected checks before repeating that gate.

Never self-declare release readiness from a green test suite alone. Release-sensitive work needs an independent release-gate decision based on the final diff, validation, review, audit, compatibility evidence, and unresolved debt.

Git workflow (default)

Feature

  1. Branch from main: git checkout -b feat/description main
  2. Open a draft PR right away with title + short scope description
  3. Commit iteratively, push regularly, PR updates itself
  4. Done? Mark PR ready → review → squash merge with a Conventional Commits message
  5. Delete remote + local branch, git checkout main && git pull

Bugfix

Same flow, git checkout -b fix/description main. Draft PR optional (small enough to open directly).

Hotfix

Same flow as release: fix branch → PR → merge → tag. No feature iteration.

Default rules

  1. Do not stop after every milestone when the next step is already clear.
  2. Plan before doing. If task is non-trivial and no plan exists, generate one before moving to inspection.
  3. Ask only when the answer changes scope, product behavior, architecture, safety, or acceptance.
  4. Prefer preventing mistakes early with types, validation, guards, and simpler control flow.
  5. Follow existing repo patterns before inventing new ones. Build only what the current requirement needs.
  6. Run only review gates required by the workflow risk; load code-review when the current workflow includes REVIEW.
  7. When work reveals reusable workflow friction, capture it with write-skill.
  8. Reuse the repo's existing durable planning or spec system; do not create a parallel doc tree.
  9. Delegate only when the work is parallel, repetitive, or context-heavy.
  10. Follow the standard git workflow: branch, draft PR, commits, squash merge, cleanup.
  11. Never modify or delete external system state (entity registries, device registries, databases, config files on remote hosts) without showing the user what will change and asking for confirmation. "Check X then do Y" means show check results first, then ask before acting.
  12. Discover the repository's own test/build/lint commands from manifests, CI workflows, and documented commands; never assume a default runner.
  13. Push back when an approach has clear problems: name the concrete downside (quantified when possible), propose an alternative, and only accept the override when the user decides with full information.
  14. Verify framework and library decisions against official documentation. Detect the exact versions from dependency files, follow the documented patterns, and cite the source. When no authoritative source is found, flag the approach as UNVERIFIED instead of improvising confidently; never treat training data, tutorials, or forum answers as authoritative.
  15. Classify scope drift mid-release. When a new (non-issue, non-blocker) request lands while a release gate is open, do not silently absorb it: name it out-of-scope-with-note or fit it into must/should/could with a decision gate before spending research or implementation time on it.

Use with

  • intake for ambiguity that could change the implementation — intake can also identify stages during planning
  • research or deep-research when implementation depends on facts not yet established; consume their handoff instead of repeating investigation
  • design for interface work that needs visual direction and screenshot-based review
  • code-review after meaningful code edits and before handoff
  • debugging for bugs, failing tests, and broken builds
  • verification before claiming success
  • improve when the codebase needs a structured audit or refactoring pass
  • agent-workflows for parallel delegation, the output contract for subagent tasks, and dynamic workflow mechanics

Avoid

  • Big-bang rewrites when an incremental change will do
  • Speculative abstractions or future-proofing theater
  • Repeated approval pauses during obvious execution
  • Leaving small in-scope paper cuts behind when they are cheap to fix safely
  • Re-reading the same files without learning anything new
  • Delegating tightly coupled changes that need shared judgment
  • Treating process as a substitute for thinking

04 同仓库更多 Skills