AGENT SKILL

pick-for-the-problem

Re-anchors fitting a tool, library, framework, language, or approach to the problem, not habit, incumbency, or preconception; re-derives the choice. Use when: 'pick for the problem', 'right tool for the job', 'which library should we use', 'what framework', 'should we build this or use X', 'is this the right approach', 'you defaulted to X', 'we always reach for X', 'evaluate the options', 'choose a dependency', or at conversation start on a build-vs-buy or technology-selection decision.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 30
Forks
7

01 前言 Front Matter

metadata
{ "summary": "Re-derive a tool or approach choice from the problem, not habit", "workflow-stage": "anytime", "discipline-batch": "situational", "discipline-batch-rank": 80 }
description
Re-anchors fitting a tool, library, framework, language, or approach to the problem, not habit, incumbency, or preconception; re-derives the choice. Use when: 'pick for the problem', 'right tool for the job', 'which library should we use', 'what framework', 'should we build this or use X', 'is this the right approach', 'you defaulted to X', 'we always reach for X', 'evaluate the options', 'choose a dependency', or at conversation start on a build-vs-buy or technology-selection decision.
user-invocable
true
disable-model-invocation
false

03 SKILL.md 正文

Pick for the problem

A drift corrector for selection discipline: the tool must fit the problem, not the reflex. The shared method (re-anchor, audit the work in flight, correct forward, report) lives in ${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md. Read it; this file adds only what is specific to selecting a tool, library, framework, language, or approach.

The discipline this re-anchors

A selection is a design decision, not a reflex. Resolve the source of truth per the method doc's ladder: if the consuming project states a technology-selection or dependency-adoption rule in its own CLAUDE.md / .claude/rules/, re-anchor THAT. Otherwise re-anchor this portable baseline.

The five selection sins, an unexamined choice usually traces to one:

  • Habit. "I always use X." The reach is muscle memory, not analysis.
  • Availability. "X is already at hand." Convenience picked it, not fit.
  • Incumbency. "the repo already uses X, so new work assumes X." Current state is treated as the requirement.
  • Preconception. "I came in believing X is the answer." The verdict preceded the problem.
  • Popularity. "Everyone uses X; the top template ships it." Adoption stood in for correctness, unchecked against the principle X claims to serve.

The discipline that replaces them:

  • Define the actual problem first. Name what is being solved, the real requirements, before any candidate is on the table.
  • Survey the field. More than one candidate, judged against the stated requirements and the plausible future ones (variables that could shift and turn a choice into future pain).
  • Walk the preference ladder, an earlier rung wins when it covers the requirements and the plausible future requirements:
    1. Native. What the platform, language, or framework already provides: no new dependency, no new coupling.
    2. Official / authoritative, the first-party or canonical option when native falls short.
    3. Vetted third-party. Only when the rungs above genuinely miss, and only if it is well-maintained, well-known, safe, and secure.
  • Every dependency is a coupling point. Weigh, at adoption time, the cost this coupling can impose later: abandonment, a pricing pivot, a license change, security posture, and exit cost.
  • Building what already exists is a finding. Re-implementing a solved, well-served problem (native or vetted) is a selection error in the other direction. Name it.

Mandatory routing. No verdict from memory

When the selection is load-bearing, the field survey and the maintenance / security / license / adoption judgment must come from CURRENT research, not training-data recall: a tool's maintenance status, licensing, and security posture drift constantly. Route to a research capability rather than judging from memory: invoke /discovery:research via the Skill tool, or /discovery:research deep for a large surface. Degrade to an explicit in-thread research pass (fetch the primary sources yourself and cite them) when that capability is not installed, never a bare recalled verdict. State the chosen option with a Basis:: verified with the source URLs or tool output it rests on, or judgment only where the call is not consequential (cross-repo, shared infrastructure, irreversible, or security). A consequential choice research cannot settle is withheld: raise it as an open question naming the evidence that would settle it. Contract: ${CLAUDE_PLUGIN_ROOT}/context/recommendation-basis.md; full convention: recommendation-basis.

Audit. What to look for

Name concrete, located findings (per the method doc's step 2, self-audit; on load-bearing work a fresh-context subagent confirms a clean result), both at an explicit choice-time AND over choices already embedded in the work in flight:

  • a tool named before the problem it solves was stated;
  • a single candidate with no field surveyed;
  • a choice tracing to habit, availability, incumbency, or preconception rather than fit;
  • a third-party dependency adopted with no maintenance / security / license / exit-cost weighing;
  • a native or authoritative option skipped straight to third-party;
  • a hand-built solution to an already-solved, well-served problem.

Correct each forward now: re-derive the choice from the stated problem, run (or route) the survey, walk the ladder, and price the coupling. Where the evaluation is load-bearing, route it to research rather than self-checking from the same recall that produced the reflex.

Resolve the verification level once with bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin discipline --skill pick-for-the-problem --file docs/conventions/discipline.yaml and report its line (levels): light and off skip the method doc's step 2 and step 3 subagents, as it says, and the final reply then carries the line verification: skipped (<level>) verbatim, such as verification: skipped (light).

Distinct axis, the incumbency overlap

The incumbency sin here is selection-specific. "the repo uses X, so this new work uses X". The general interrogation of inherited precedent is /discipline:reason-dont-recite; route a broader inherited-design challenge there. Consistency of idioms, structure, and process, where matching the established way is usually right, is /discipline:reuse-or-replace's axis, which carves tool/dependency selection out to this skill.

What this skill does NOT do

  • Does not churn a well-fitted choice. A tool re-derived from the problem and found to fit audits clean, including an incumbent one; the duty is to re-derive, not to switch for its own sake.
  • Does not audit a whole repository's dependency graph. The audit covers the selection in flight; a repo-wide coupling-risk inventory is out of scope.

Gotchas

  • The reflex hides as a reason. "We use X here" and "X is what I know" are the incumbency and habit sins wearing the costume of a rationale; a real rationale names the requirement X satisfies, not its familiarity.

04 同仓库更多 Skills

melodic-software
melodic-software/claude-code-plugins

track

Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.

★ 30
melodic-software
melodic-software/claude-code-plugins

reviewer-media

Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.

★ 30
melodic-software
melodic-software/claude-code-plugins

route

Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.

★ 30
melodic-software
melodic-software/claude-code-plugins

route

Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.

★ 30
melodic-software
melodic-software/claude-code-plugins

principles

Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.

★ 30
melodic-software
melodic-software/claude-code-plugins

write

Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').

★ 30