galahad
how to approach tests, types and coverage
Best use case
galahad is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
how to approach tests, types and coverage
Teams using galahad should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/galahad/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How galahad Compares
| Feature / Agent | galahad | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
how to approach tests, types and coverage
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Coding Agent Quality Rules (Galahad Principle) Based on Jonathan Lange’s “The Galahad Principle”: https://jml.io/galahad-principle/ Core idea: **getting to 100% yields disproportionate value**—especially **simplicity** and **trust**. When checks are truly “all green”, any new failure is a strong, unambiguous signal; “absence of evidence becomes evidence of absence”. ## Non-negotiables: never evade feedback Treat **type errors, test failures, pre-commit hooks, lint errors, and coverage warnings** as helpful feedback. Fix root causes. ### Absolutely forbidden (unless the user explicitly orders it) - **Type escapes / silencing** - `any`, sketchy `unknown` laundering, unchecked casts, `as any`, `@ts-ignore`, `# type: ignore`, `noqa`, disabling strict mode, weakening compiler flags, etc. - **Coverage gaming** - Ignoring/excluding lines/branches/files just to hit targets (`/* istanbul ignore */`, `# pragma: no cover`, “generated” tricks, config exclusions, decorator/macro suppression). - **Faking results** - Skipping CI steps and claiming success; “snapshotting” coverage; lowering thresholds; marking tests flaky to ignore them. ## Priorities Type safety is part of correctness and **outranks tests**. When tradeoffs exist, prioritize in this order: 1. **Type safety / soundness** 2. **Correctness + meaningful tests** 3. **Clarity / maintainability** 4. **Performance** 5. **Backwards compatibility** (lowest) Breaking changes are acceptable when they improve verifiability and simplify the system. ## Default workflow (when anything fails) 1. Read the failure output carefully. 2. Restate the real invariant being violated in plain English. 3. Fix the root cause (not the symptom). 4. Improve tests so the behavior is pinned and regressions get caught. 5. Refactor production code if needed to make it easy to type-check and validate. ### Run checks in this order 1. **Typecheck** 2. **Unit tests** 3. **Integration tests** 4. **Lint / pre-commit** 5. **Coverage** Goal: a repo where “all green” is normal, and any new red is a loud, trustworthy signal. ## “Hard to test” means refactor If something is hard to test or hard to type: - Treat it as a **design smell**. - Refactor towards: - smaller pure functions - explicit data flow, minimal global state - clear boundaries between logic and side effects - typed domain models over stringly-typed blobs ## Mocks: don’t overuse them Avoid injecting mocks via monkeypatching or replacing system utilities by default. Preferred approach: - Make the function under test able to operate in multiple environments by **passing in the substitutable operations explicitly** (usually as function parameters or small interfaces). - Only do this for operations that genuinely need substitution in tests (time, randomness, network, filesystem, process execution, etc.). - This makes the injection point **explicit**, documents what varies, and keeps tests honest without fragile mocking. ## What “good” looks like - Types encode invariants; no “trust me” casts. - Tests assert observable behavior (not implementation trivia). - Coverage comes from exercising real behavior, not exclusions. - If a thing can’t be verified cleanly, refactor until it can.
Related Skills
tooltest-fix-loop
Use when running tooltest to validate MCP servers, interpret failures, and iterate fixes in this repo.
testing-patterns
Testing patterns and standards for this codebase, including async effects, fakes vs mocks, and property-based testing.
rust-guidelines
Pragmatic Rust conventions to keep code readable, testable, and performant for this project.
lambda-workflow
One lifecycle for Lambda repos: choose a br issue, start work, land the PR, and watch GitHub via Dumbwaiter MCP until it merges.
beads
Git-backed issue tracker for multi-session work with dependencies and persistent memory across conversation compaction. Use when work spans sessions, has blockers, or needs context recovery after compaction.
bd-to-br-migration
Migrate docs from bd (beads) to br (beads_rust). Use when updating AGENTS.md, converting bd commands, "bd sync" → "br sync --flush-only", or beads migration.
swe-cli-skills
Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms
PicoClaw Fleet
Orchestrate a fleet of remote PicoClaw workers over SSH for fast, ephemeral one-shot tasks.
VibeCollab — Setup Instructions for AI Assistants
You are helping a user set up VibeCollab in their project.
raycast-extension-docs
Guidance for building, debugging, and publishing Raycast extensions using the Raycast documentation set. Use when Codex needs to create or modify Raycast extensions (React/TypeScript/Node), consult Raycast API reference or UI components, build AI extensions, handle manifest/lifecycle/preferences, troubleshoot issues, or prepare/publish extensions to the Raycast Store or Teams.
evomap
Connect to the EvoMap collaborative evolution marketplace. Publish Gene+Capsule bundles, fetch promoted assets, claim bounty tasks, register as a worker, create and express recipes, collaborate in sessions, bid on bounties, resolve disputes, and earn credits via the GEP-A2A protocol. Use when the user mentions EvoMap, evolution assets, A2A protocol, capsule publishing, agent marketplace, worker pool, recipe, organism, session collaboration, or service marketplace.
maestro
Intelligent skill knowledge gateway. Routes tasks to the right knowledge without loading all skills into context. MUST be consulted before any coding task — call the search_skills MCP tool to retrieve relevant expertise from 100+ indexed skills covering Swift, SwiftUI, concurrency, testing, architecture, performance, and security.