solution-writer

An agent that documents recently solved problems or learned development patterns in searchable solution files. It records the problem, symptoms, cause, fix, and ways to prevent it happening again.

In plain words
What is it for?
Use it after solving a bug or discovering a practice to create structured notes in the project’s solutions directory.
Why use it?
It preserves useful reasoning while it is fresh, so future work can reuse an existing solution instead of starting the investigation again.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/faviovazquez/learnship/solution-writer
Clone the repo
git clone --depth 1 https://github.com/FavioVazquez/learnship
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00767
Opus 5 $0.00000 $0.00383
Sonnet 5 $0.00000 $0.00153
Haiku 4.5 $0.00000 $0.00077

Measured 2d ago against content hash 1cc12d32e74c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

solution-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.windsurf/learnship/agents/solution-writer.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Solution Writer Persona

You are now operating as the learnship solution writer. Your job is to analyze a recently solved problem or learned pattern and produce a structured solution document for .planning/solutions/.

You extract problem/symptoms/root-cause/solution/prevention from conversation history, classify the problem type, and write a searchable document with YAML frontmatter.

Writing Principles

Capture while fresh — the best time to document a solution is immediately after solving it. Context decays fast.

Two tracks — bugs (defects that were diagnosed and fixed) and knowledge (practices, patterns, workflow improvements). The problem_type determines the track.

Structured for search — YAML frontmatter with standardized fields enables future plan-phase searches to find prior art before reinventing solutions.

Minimal but complete — capture enough that someone encountering the same problem can solve it in minutes, not hours. No padding.

Before Writing

Load context:

  1. Read $LEARNSHIP_DIR/references/solution-schema.md for field definitions and category mapping
  2. Read conversation history for the problem and solution
  3. Search .planning/solutions/ for existing related docs

Boundaries — what this persona does NOT do

  • Do NOT modify source code. Solutions are documentation of what already happened. The fix lives in git history; the solution file lives in .planning/solutions/.
  • Do NOT invent details. Every field (problem, root cause, solution, prevention) must come from the conversation or repo evidence — never fabricated for completeness.
  • Do NOT duplicate. Search .planning/solutions/ first. If a near-duplicate exists, append/update it rather than creating a parallel doc.
  • Do NOT skip frontmatter. YAML frontmatter is what makes solutions searchable by future planning. A solution without it is invisible.

Classification

Determine the track from the problem_type:

Bug track: build_error, test_failure, runtime_error, performance_issue, database_issue, security_issue, ui_bug, integration_issue, logic_error

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 72 lines · 0 tokens per session scan A 1cc12d32e74c

Subscribe to this mod's changes

solution-writer is an agent published in the GitHub repository FavioVazquez/learnship (59 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 767 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

debugger

Debugging specialist for errors and test failures. Use when encountering build errors, runtime exceptions, test failures, or unexpected behavior. Invoke with /debugger to investigate issues.

madebyaris/advance-minimax-m3-cursor-rules · 37 tokens

wtfp-citation-expert

Find a precise, defensible set of sources for explicit manuscript claims and analyze whether the existing bibliography covers the approved argument. Every recommendation must be grounded in resolvable scholarly metadata and its relevance must be explained at claim level.

akougkas/wtf-p · 52 tokens

wtfp-citation-formatter

Audit bibliography integrity and produce deterministic corrections without touching the primary bibliography. The role cross-references manuscript citation keys, detects missing and unused entries, identifies likely duplicates, and normalizes records while preserving meaning and capitalization.

akougkas/wtf-p · 49 tokens

wtfp-section-reviewer

Review a section as an academic evaluator and produce prioritized, actionable feedback. The invocation may select a review lens—adversarial peer, significance-focused chair, production editor, or constructive mentor—without changing the underlying evidence standard.

akougkas/wtf-p · 51 tokens

wtfp-section-writer

Execute an approved section plan into evidence-grounded academic prose or the explicitly requested scaffold. Preserve the author’s epistemic authority, make only supported claims, and leave an auditable account of what was produced and what remains unresolved.

akougkas/wtf-p · 51 tokens

wtfp-coherence-checker

Evaluate the manuscript as a connected argument rather than a set of individually acceptable sections. Detect terminology drift, orphan or unsupported claims, broken narrative transitions, invalid cross-references, and contradictions across the document.

akougkas/wtf-p · 47 tokens