Repository navigation
docs: agent skills for the recurring task types (#10) - #72
Merged
Merged
Conversation
Adds .claude/skills/ with one SKILL.md per recurring task type, each with frontmatter, step-by-step instructions whose commands were run in this checkout, a worked example that references files in the repository, and a checklist: - picking-up-an-issue: the CLAUDE.md/CONTRIBUTING.md flow made operational (unblocked-issue search, claim, worktree and branch, verification commands, commit trailers via -F, PR body via --body-file, Phase 0-1 self-merge vs later owner review, rebasing over Broadside.slnx conflicts, cleanup). - updating-the-conformance-map: file and row lookup, cell formats (backticked fully qualified types and Namespace.Class.Method tests, as #7 formalizes), third-level splits, XML doc citations, the #7 checker command marked as arriving. - writing-a-corpus-file: generate.py building blocks, naming, scratch regeneration and diff, qpdf/poppler verification, README row, Corpus.cs lists, Verify snapshot refresh; worked example text-type1-embedded.pdf (described, not added). - adding-a-benchmark: bench layout, MemoryDiagnoser and --job conventions, zero-allocation proof, dry/short/full runs, what the Phase 3I regression gate needs. - adding-a-fuzz-target: FuzzTargets.All registration, the contract, seeds, modes, same-PR rule; worked example pdf-header. - adding-a-filter, adding-a-font-program-parser, adding-a-rendering-backend: design briefs for the extension points that #18, Phase 2A and Phase 3A define, with a note to replace the contract section once the real signatures land. Adds .claude/skills/README.md as the index and a "Skills" subsection under "Picking up work" in CLAUDE.md that lists the skills and says to invoke the matching one before starting that kind of task. Signed-off-by: Michael Stonis <120685+michaelstonis@users.noreply.github.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Several recurring commands and examples are incorrect or internally inconsistent and could misdirect future contributors.
4 open findings
What changed in this PR
Adds reusable agent skills for Broadside’s recurring development workflows and links them from the primary contributor guidance.
Changes:
- Adds workflow skills for issue handling, conformance, corpus, benchmarking, and fuzzing.
- Adds design briefs for filters, font parsers, and rendering backends.
- Adds a skill index and discovery guidance.
| File | Description |
|---|---|
CLAUDE.md |
Introduces and indexes skills. |
.claude/skills/README.md |
Summarizes available skills. |
.../picking-up-an-issue/SKILL.md |
Documents issue-to-merge workflow. |
.../updating-the-conformance-map/SKILL.md |
Documents conformance updates. |
.../writing-a-corpus-file/SKILL.md |
Documents corpus generation. |
.../adding-a-benchmark/SKILL.md |
Documents benchmark requirements. |
.../adding-a-fuzz-target/SKILL.md |
Documents fuzz-target integration. |
.../adding-a-filter/SKILL.md |
Defines the filter design brief. |
.../adding-a-font-program-parser/SKILL.md |
Defines the font-parser design brief. |
.../adding-a-rendering-backend/SKILL.md |
Defines the backend design brief. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| } | ||
| ``` | ||
|
|
||
| Put only the per-item work inside `RunHotPath`; one-time buffers (`ArrayPool<T>` rentals, the output list) are allowed per call, so size the input to make per-token allocations visible. |
|
|
||
| ```sh | ||
| gh api repos/michaelstonis/Broadside/milestones --jq '.[] | "\(.number) \(.title) open=\(.open_issues)"' | ||
| gh issue list --repo michaelstonis/Broadside --milestone "Phase 1: COS layer" --search "no:assignee" --state open |
| dotnet run --project tools/ConformanceCheck -- --root . --summary | ||
| ``` | ||
|
|
||
| It fails on a `done` row without a test and prints counts per status; CI runs it on every PR. Until it lands, check by hand that each row you touched has backticked identifiers in both cells and that every test named exists (`grep -rn 'Tokenizes_names' tests/`). |
| 2. Regenerate into a scratch directory and diff. Only your new file may differ ("Only in"); any other difference means you changed shared code and must explain it in the PR: | ||
|
|
||
| ```sh | ||
| python3 -I tests/Corpus/generate.py /tmp/corpus-regen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #10
Phase 0 row 0.10: agent skills for the recurring task types.
Summary
Adds
.claude/skills/, one directory per skill with aSKILL.md(frontmatternameanddescription, step-by-step instructions, a worked example that references files in this repository today, a checklist), plus.claude/skills/README.mdas the index.picking-up-an-issueCLAUDE.md/CONTRIBUTING.mdflow made operational: milestone and unblocked-issue search (gh issue list --search "no:assignee"plus a### Blocked byextraction), self-assign and label, worktree and branch fromorigin/main, reading clauses fromSpecs/, verification commands, commit trailers via-F(sandbox quirk noted), PR via--body-file, Phase 0–1 self-merge vs later owner review, rebasing overBroadside.slnxconflicts, cleanup.updating-the-conformance-mapNamespace.Class.Methodtests, as #7 formalizes), when and how to split to third-level rows (with the real §7.2 sub-clause titles read fromSpecs/),<remarks>citations, the #7 checker command marked as arriving. Worked example: §7.2partial.writing-a-corpus-filegenerate.pybuilding blocks (serialization helpers,File, filters, encryption, determinism,minimal_truetype), naming rule, scratch regeneration anddiff -rq,qpdf/pdfinfo/pdftotext/pdffontsverification, README row,Corpus.cslists, Verify snapshot refresh. Worked example:text-type1-embedded.pdf, described only.adding-a-benchmarkbench/layout,[MemoryDiagnoser]and--jobconventions (no job attributes;BenchmarkConfigsupplies the job), zero-allocation proof (Allocatedreads-plus aGC.GetAllocatedBytesForCurrentThreadtest), dry/short/full/JSON runs, what the Phase 3I gate needs. Worked example:CorpusBenchmarks.adding-a-fuzz-targetFuzzTargets.Allregistration, the contract (span in, lenient mode, any escaping exception is a finding), seeds fromtests/Corpus/and raw-stream seeds viaqpdf --show-object,--list/--smoke/--run/--fuzz/--afl, same-PR rule. Worked example:pdf-header.adding-a-filterBroadside.Filtersextension point (#18): responsibilities, managed default, registration throughPdfOptions(no static registry), deliverables. Worked example: LZWDecode againstlzw-stream.pdf.adding-a-font-program-parserBroadside.Fontsextension point (Phase 2A): responsibilities, managed default, registration, deliverables. Worked example: the TrueType parser againsttext-truetype-embedded.pdf.adding-a-rendering-backendBroadside.Renderingbackend contract (Phase 3A, ADR 0006): responsibilities, software rasterizer as default and oracle, package rules, deliverables. Worked example: the Skia backend project that already exists.The three design-brief skills open with a note that the interface is defined by #18 / Phase 2A / Phase 3A and that their contract section is to be replaced with the real signatures when those land. They describe responsibilities and do not invent method signatures.
CLAUDE.md change
Additive only: a "Skills" subsection under "Picking up work" listing the eight skills and saying to invoke the matching one before starting that kind of task. Justification:
CONTRIBUTING.mdalready says agent-specific guidance lives inCLAUDE.mdand.claude/skills/, and the issue's acceptance criterion is that agents use these skills; without a pointer in the file every agent reads first, the skills would not be found. No existing rule, term or decision changes.Deliverables
PublicAPI.Unshipped.txtupdated if the public surface changed: nonePublic API changes
none
Verification
Every command a skill tells the reader to run was run in this worktree, except the
tools/ConformanceCheckcommand, which the skill marks as arriving with #7, andgh pr merge, which this PR does not exercise (flags confirmed withgh pr merge --help).Frontmatter of every
SKILL.mdparses as YAML with exactlynameanddescription, andnamematches the directory. Each skill is 58–127 lines.🤖 Generated with Claude Code