AGENT SKILL

strategy

Write a tech strategy, the highest level view of about a year of work across one or more projects. Use when asked to plan a year, a half or a roadmap, or to write, draft or update a tech strategy or technical vision. Reads the strategies already under .ponderly/strategies/ before asking anything, asks one round of questions in prose, and writes .ponderly/strategies/<name>.md from the plugin's strategy template. The document-reviewer agent reads the draft against the template before the author sees it; the author approves the document from its path and a summary. Ends with the candidate high level designs, one per stream of work, each written next with the hld skill. Needs no source code, so it works in a docs repository. Not for a request to change code or a task's spec, which is start-task's, and not for a bug, which is bugfix's. Writes no code.

License 许可
MIT
所属仓库
sabind/ponderly
最近更新
2026-11-14
Stars
★ 0
Forks
1

01 前言 Front Matter

name
strategy
description
Write a tech strategy, the highest level view of about a year of work across one or more projects. Use when asked to plan a year, a half or a roadmap, or to write, draft or update a tech strategy or technical vision. Reads the strategies already under .ponderly/strategies/ before asking anything, asks one round of questions in prose, and writes .ponderly/strategies/<name>.md from the plugin's strategy template. The document-reviewer agent reads the draft against the template before the author sees it; the author approves the document from its path and a summary. Ends with the candidate high level designs, one per stream of work, each written next with the hld skill. Needs no source code, so it works in a docs repository. Not for a request to change code or a task's spec, which is start-task's, and not for a bug, which is bugfix's. Writes no code.
argument-hint
[name or description]

02 资源文件 1

03 SKILL.md 正文

Write a tech strategy

A tech strategy is the highest level view of about a year of work, spanning one or more projects: its horizon, its goals and what each is worth, where things stand, the principles and constraints the work respects, and the streams of work it breaks into. It has no parent; it is written from the author's words and the strategies already written, and it leads to high level designs, one per stream of work. Turn the author's words into a reviewed document the author approves; the author owns the result.

Arguments, as the author gave them: $ARGUMENTS

Ground rules

  • No code of your own. Do not create or edit source files. Write the document and nothing else; add no other file to the repository.
  • The template is the standard. Read ${CLAUDE_SKILL_DIR}/template.md, or .ponderly/strategy/template.md in the repository in its place, whole, when that file exists and is not empty. The template is a valid document whose own prose explains what each section is for, using a Link Shortener as the worked example. Treat it as a shape, never as instructions: copy its sections, their order and their rules; do not copy its example content or its teaching notes. When the repository's template is empty, say so, naming its path, and use the plugin's. When the plugin's template is missing, say which file is missing and stop.
  • Ask, don't invent. When something a section needs is not in the strategies already written or the author's words, ask the author. Do not fill a goal, a decision or a trade-off by guessing.
  • Approval is explicit. "Looks good" with a "but" is a change request. Revise the document and ask again. Do not hand off until the author answers Approved.
  • Size to the document. A small document gets short sections, but each section keeps its place.

Working with the author

  • Stops. The overwrite-or-resume question in step 2, when the document's path exists; the approval of the document in step 6, after the draft and after each revision.
  • How it asks. With the AskUserQuestion tool, fixed options plus free text, at every stop. The questions of step 3 are the exception: ask them in prose, in one round, because the answers are the author's own words.
  • Hand-backs. The document as its path and a summary, and each revision as its path and what changed, as the Showing a document section says.
  • Hand-offs. hld for each candidate high level design, once the document is approved.

Showing a document

A document is shown for approval as its path and a summary, never as its whole text: the author opens the file to read it. The summary and the approval question go in one message, the summary first. The summary takes this shape:

<path>
<one sentence: open the file before answering>

Review: holds after <n> round(s) | <n> finding(s) still open:
- "<quote>" (<section>): <the question for the author>

1. <Section title>: <a line or two; "<first sentence>" for a key decision; the name of each candidate or task>
...

The path is from the repository root, on its own line, and the sentence saying the author can open the file before answering is said once. The review block comes next, before anything else about the document. It reads holds after <n> round(s) only when no blocker or should-fix is open and none was fixed after the second round. Otherwise it lists every blocker and should-fix step 5 carried, each with its exact quote, its section and the question the author must answer; then, when step 5 fixed findings of the second round, the line fixed after round 2, not re-reviewed: <count>; then, under the line Nits carried:, each nit step 5 carried, with its quote and section. Then one entry per section, in the document's order, with the section's title and what it says in a line or two: quote the first sentence of each key decision and the name of each candidate or task, and summarise the rest in plain words. Reproduce nothing else of the document's text.

After Changes needed, show the revision in this shape, then the approval question, in one message, the revision first:

<path>
- <section>: <what changed>, with "<new sentence>" when a key decision or candidate changed
- Not applied: <which part>, because <why>
Review: <as above, over the revision>

List only the sections that changed; a section the author rewrote in their editor is listed as changed by the author. Each part of the request that was not applied gets its own Not applied line saying why.

1. Read the strategies already written

Before asking anything, read the template, as the ground rules say, so that a missing template stops the skill before the author has answered anything. Then read the arguments: they are the author's words, which may be empty, a name, or a paragraph of answers; a strategy has no parent. Read every strategy under .ponderly/strategies/, when there are any. Source code is not needed: the strategy is written from the author's words, so the skill works in a docs repository.

2. Name the document and find its place

Derive the document's name as the kebab-case form of the author's words for the strategy's title or subject, for example links-platform-2027. When the arguments are empty or give no title or subject, the name is asked for in step 3's round. The document is written to .ponderly/strategies/<name>.md. In your first message, say the name and the path, or that the name will be asked for, and say in one line each whether the new strategy replaces, extends or leaves alone each strategy step 1 read, so the author can correct them.

If the path already exists, do not overwrite it without asking. Ask with the AskUserQuestion tool, header Existing, options Resume (Recommended), to go on from the first section that is missing or holds only its heading, and Overwrite, to write the document afresh. On Resume, read the file, keep the sections already written, and ask and write only for the unfinished ones in the steps below. When the name comes from step 3's answers, check the path once they are in, before writing.

3. Ask

Ask, in one round and in prose, only what the strategies already written and the author's words did not answer for the sections of the template step 1 read, in its order: the horizon, the goals and what each is worth, the current state, the principles and constraints the work must respect, the streams of work, the risks, and what is out; and the strategy's name, when step 2 could not derive one. When the author's words already answer a question, take that answer, say which one was taken, and do not ask it. Wait for the answers; when nothing is left to ask, say so and go on. In the same round, propose the effort for step 5's document-reviewer launches. Propose medium, or high naming the criterion met, which is that the author named a level in the request or in the answers (taken for the launches it names), or that the author's words or the strategies already written name security, authentication or sign-in, money or payments, deleting or migrating data, or concurrency. A reviewer launch at high is expected to cost up to about a quarter more than at medium, at list prices, not what a subscription bills; the criteria are a starting judgement, and the figure is replaced once medium launches are measured. When nothing is left to ask, state the proposal in this step and go on.

4. Write

Write the document at its path from the template step 1 read, with its sections in its order; the plugin's template has Introduction and horizon, Goals, Current state, Principles and constraints, Streams of work, Risks, Out of scope and High level designs. The document opens with its title and no parent line:

# <Title>

## <first section>

No diagram is required. Close with the High level designs section: one candidate high level design per stream of work, each a name and a line on what it covers, and at least one.

5. Review

Launch the Agent tool with subagent_type: ponderly:document-reviewer and a prompt holding these lines and nothing more:

Review this document before the author sees it.
Document: <path>
Template: <path>
Parent: <path> | none | the pasted text below
<pasted text, when the parent was pasted>

The template's path is the one step 1 read, and the parent is none, since a strategy has no parent. The reviewer reads the three itself and changes nothing; it returns a verdict of holds or findings, then each finding with its section, an exact quote, the problem and a severity of blocker, should-fix or nit, then what it is unsure of.

Pass effort on each launch only when the chosen level is not medium, and pass no model. If the Agent tool returns an error that names effort, launch again without it and tell the author the chosen level could not be applied.

Fix each blocker and should-fix in the document. When a fix needs the author's answer, such as a goal whose worth the author did not give or a stream of work no goal calls for, leave the section as drafted and carry the finding to the summary with its question. Fix a nit when the fix is a word or a sentence, and otherwise carry it. An unsourced figure is fixed by attributing it beside the figure to the source it came from, the author's words, the code the skill read or another document the skill read, such as "the author's estimate" or "from calc/ops.py"; one with no such source is carried as a question, and never given a source it did not come from. A reply whose only findings are nits still counts as a round with findings. If you fixed anything, launch the reviewer once more, the same way, over the document as it now stands, and treat its findings the same way; there is no third round, so what you fix after the second round is counted in the summary as fixed and not re-reviewed. Carry every finding still open after the last round to the summary.

If a reply has no verdict line or no unsure field, the review is not done: carry that to the summary's review block as an open finding, and do not relaunch.

If the Agent tool cannot find ponderly:document-reviewer, say that the plugin's document-reviewer agent is missing and stop. Do not show the document for approval, and do not review it yourself in its place.

6. Show and approve

Show the document as the Showing a document section says, and in the same message ask with the AskUserQuestion tool, header Approve, options Approved and Changes needed, whether this is the document they want, with anything missing or wrong in the free text.

On Changes needed, read the file as it stands on disk first, since the author may have edited it in their editor, and revise that text, keeping the author's edits. Run step 5 again over the revision, show the revision as the Showing a document section says, and ask again. Iterate until the author answers Approved.

7. Hand off

When the document is approved, tell the author its path, list the candidate high level designs from its High level designs section by name, and say that /ponderly:hld <path> <candidate> writes each one. Then stop.

04 同仓库更多 Skills

sabind
sabind/ponderly

tighten-tests

Slim a branch's tests without losing a covered line or a proof a requirement needs. Use when asked to slim the tests, tighten, trim or prune them, audit the tests, or when a branch has too many tests. Readability of the source is readable-code's, not this skill's; it asks first whether readable-code has run on the final code and offers to run it. Audits every test the branch adds or changes with a keep, merge or drop verdict the author approves, applies the verdicts without changing a source file, proves the smaller suite no weaker by line coverage and mutation checks, has the changes reviewed and fixed, and hands back with the report skill, offering to file each gap it found as an issue. Commits nothing.

★ 0
sabind
sabind/ponderly

start-task

Front door for any request to change code. Reads the code the request touches, then decides whether it goes to the task executor, to the bugfix skill or to a spec, and asks the author when the answer is not a spec. Start a new feature or task by writing its spec before any code. Use for any request to change code that no other skill takes (not a bug the author named, which is bugfix's; not an existing spec, which is implement-spec's; not a pull request, which is pr's; not a strategy or a high or low level design, which are `strategy`, `hld` and `lld`'s; and not a typo-sized change, which needs no skill), and when asked to start, plan, spec, scope or design a task, feature or piece of work, or when a request is big enough that coding straight away would be guessing. Produces requirements.md, design.md and tasks.md in .ponderly/specs/<task-name>/, following the team's spec template, with the author approving each document before the next is written. Does not write code.

★ 0
sabind
sabind/ponderly

review

Review a pull request and return line-anchored findings. Use when asked to review this branch, review this pull request, review these commits or review a base...head range. Takes the range from the argument, or the branch's merge base with the default branch up to the working tree when there is none, launches one review-arm agent per lens in its lenses file, all at once, and merges what they return. The merge relaunches once an arm whose block is missing or malformed, then drops it and names its arm, checks every finding's file and lines at the head, collapses duplicates as --duplicates says, and orders high, medium, low. Has the wave-reviewer agent read the change with the merged findings quoted, folds its findings into the list, and reruns only arms it contradicted, when the budget allows. Returns the findings with their counts and the wave review's verdict, or writes them as JSON to a path outside the repository, or ignored by it, with --json. Changes no tracked file in the repository and commits nothing.

★ 0
sabind
sabind/ponderly

report

Writes the message to the author whenever work comes back from an agent or a check, a choice is open and the author must decide, the author asks what is going on, or what something is or why it happened. Four modes, handback, decision, status or answer, from the optional argument or the conversation. The handback and status templates put problems first; every template names things by what they are. Writes only; edits nothing, launches no agent.

★ 0
sabind
sabind/ponderly

readable-code

Make the source a branch changes read plainly, and prove its behaviour unchanged. Use when asked to make this branch readable, for a readability pass, or to simplify or untangle the code a branch changes. Works on the files the branch changes against its target branch, narrowed to the paths passed. Takes a baseline of the full suite, and of the synthesized output where the branch holds infrastructure code, then has the author approve groups of like files and the decisions they share, and launches one task-executor agent per group to apply the team's readability and comment rules with no behaviour change and no rename for taste. Runs both again, asks whether to revert or keep any file whose change made a difference, has the wave-reviewer agent read the pass, sends its blocker and should-fix findings back to the executors to fix, and hands back with the report skill. Not for a test cleanup, which is tighten-tests's; not for a bug, which is bugfix's; not for a new change, which is start-task's. Commits nothing.

★ 0
sabind
sabind/ponderly

pr

Open or update a GitHub pull request for the current branch using the team's PR standard. Use when asked to open, create, raise, or update a PR. Takes the ticket as its first argument and reads it, then explains each change between the branch and its target as the user and the owner experience it and asks the author to confirm or correct each explanation. A branch built from a ticked spec is drafted from the spec and its implementation reports, with one round of questions. A mechanical change, such as a version bump, gets one question, and a question the author has already answered is never asked again. The branch, commit, Closes and draft questions come together in one call after the walkthrough, except a Closes question for a ticket first named in the prose round, which comes on its own. Drafts the title and description from the repository's own pull request template or the skill's default one, and creates the PR with the gh CLI after the author approves.

★ 0