Agent skill

Finding Seams

by citypaul in citypaul/.dotfiles

A skill your agent uses when existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators, static or global function calls, tight coupling to external…

Custom licenceAuto-check passedDevelopment

Install Finding Seams

skills CLI
$ npx skills add citypaul/.dotfiles --skill finding-seams -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install citypaul/.dotfiles finding-seams --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/citypaul/.dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/.claude/skills/finding-seams .claude/skills/finding-seams && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
finding-seams
GitHub stars
740
Token cost
~2.5k tokens
SKILL.md length
1,221 words
Files
4
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators, static or global function calls, tight coupling to external…

  • Works in 4 steps: List every hidden dependency the… → Move each one to the argument list with… → Write the test by passing fakes in as… → …
  • Existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators
  • SKILL.md covers Core Concept, When to Use, Quick Reference: Seam Types… and Putting Existing Code Under Test, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Finding Seams is an agent skill from citypaul/.dotfiles. Use when existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators, static or global function calls, tight coupling to external systems, or singleton access patterns. Specifically for identifying substitution points (seams) that make legacy or tightly-coupled code testable without editing at the call site. Do NOT use for greenfield TDD (see tdd), general test writing patterns (see testing), or refactoring already-tested code (see refactoring).

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `resources/creating-seams.md`, `resources/oop-patterns.md` and `resources/seam-types.md`).

It sits in Development, covering Test-driven development and Refactoring.

When your agent uses it

  • Existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators
  • Global function calls
  • Tight coupling to external systems
  • Singleton access patterns

Example prompts

  • “/finding-seams”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. List every hidden dependency the function reaches for -- collaborators it constructs, Date.now() / new Date(), process.env, singletons…
  2. Move each one to the argument list with a production default that reproduces today's behaviour exactly -- the new and the env read now…
  3. Write the test by passing fakes in as arguments. A fake is a stand-in you hand-write in the test and fully control: a literal like () =>…
  4. Remove any module mock of that dependency the existing tests carry -- the seam replaces it, and leaving both means the old test still…

What it can do on your machine

Read from SKILL.md and the folder at commit cd4028d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Finding Seams loads about 2.5k tokens when it runs. Until then it costs about 128 tokens; SKILL.md has 1,221 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~128
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,221 words (~2,538 tokens).

“For writing tests that document existing behavior once you have seams, load the characterisation-tests skill. For test-driving new behavior, load the tdd skill. For general test patterns, load the testing skill. For refactoring after tests are in place, load the…”

— opening of SKILL.md by citypaul, Custom licence
name
finding-seams

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files in claude/.claude/skills/finding-seams of citypaul/.dotfiles.

  • SKILL.md
  • resources/creating-seams.md
  • resources/oop-patterns.md
  • resources/seam-types.md

Open the folder on GitHubat commit cd4028d

Compare with similar skills

Finding Seams next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Finding Seams compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Finding Seams this skillcitypaul/.dotfiles740—~2.5kAutomated safety check: PassCustom licence
Skill Writingmillionco/expect3.6k—~1.8kAutomated safety check: PassCustom licence
Go Rigmudrii/openclaw-dashboard457—~2.8kAutomated safety check: PassMIT
Go Rigmudrii/openclaw-dashboard457—~682Automated safety check: PassMIT
Py Rigmudrii/hermesd118—~6.3kAutomated safety check: PassMIT
Happier Implementhappier-dev/happier1.9k—~4.2kAutomated safety check: PassMIT

Similar skills

  • Skill Writing

    millionco/expect

    Write and improve agent skills (SKILL.md files). An agent skill from millionco/expect.

    3.6k GitHub stars~1.8k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Go Rig

    mudrii/openclaw-dashboard

    A skill your agent uses when building, reviewing, or refactoring Go code that must follow strict design discipline — ATDD/TDD workflow, explicit dependency injection, package-boundary discipline…

    457 GitHub stars~2.8k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Go Rig

    mudrii/openclaw-dashboard

    A skill your agent uses when building, reviewing, or refactoring Go code in this repository.

    457 GitHub stars~682 tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Py Rig

    mudrii/hermesd

    A skill your agent uses when building, reviewing, or refactoring Python code that requires strong maintainability discipline: SRP, DRY, OCP, explicit dependency injection, TDD/ATDD workflow, strict…

    118 GitHub stars~6.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Happier Implement

    happier-dev/happier

    Implement, change, build, fix, refactor, migrate, or apply accepted review findings in the Happier repositories with canonical-owner discovery, scope-preserving solution economy, TDD, efficient…

    1.9k GitHub stars~4.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Omk Coding

    KaimingWan/oh-my-kiro

    Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification.

    107 GitHub stars~2.4k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed

More from citypaul/.dotfiles

All 44 skills in this repo
  • Find Skills

    citypaul/.dotfiles

    Discover and, with authorization, install agent skills from the open skills ecosystem.

    740 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Render Code Shape

    citypaul/.dotfiles

    Render the shape of code — module boundaries, the types that cross them, signatures, and a cited call graph — for code that already exists or a change about to be built.

    740 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Structure Codebase

    citypaul/.dotfiles

    Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

    740 GitHub stars~4.4k tokensUpdated yesterday
    Auto-check passed
  • Test Design Reviewer

    citypaul/.dotfiles

    Review test quality using Dave Farley's eight properties of good tests.

    740 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Characterisation Tests

    citypaul/.dotfiles

    A skill your agent uses when modifying existing code that lacks tests and you need to document its actual current behavior before making changes -- the legacy code dilemma where you need tests to…

    740 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • CI Debugging

    citypaul/.dotfiles

    Systematic CI/CD failure diagnosis using hypothesis-first investigation, local reproduction, and environment delta analysis.

    740 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check: notes

Questions about Finding Seams

What does Finding Seams do?

A skill your agent uses when existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators, static or global function calls, tight coupling to external…. dotfiles. Use when existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators, static or global function calls, tight coupling to external systems, or singleton access patterns.

When should I use Finding Seams?

Finding Seams fits situations like: existing code has untestable dependencies that prevent writing tests -- direct construction of collaborators; global function calls; tight coupling to external systems; singleton access patterns.

How do I install Finding Seams in Claude Code?

Run `npx skills add citypaul/.dotfiles --skill finding-seams -a claude-code`. Or copy the skill folder (claude/.claude/skills/finding-seams in citypaul/.dotfiles) into .claude/skills/finding-seams in your project. Claude Code loads it when a task matches its description.

How do I install Finding Seams in Codex?

Run `npx skills add citypaul/.dotfiles --skill finding-seams -a codex`. Or copy the skill folder (claude/.claude/skills/finding-seams in citypaul/.dotfiles) into .agents/skills/finding-seams in your project. Codex loads it when a task matches its description.

Can I use Finding Seams in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add citypaul/.dotfiles --skill finding-seams -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/finding-seams, .gemini/skills/finding-seams, .github/skills/finding-seams and .opencode/skills/finding-seams in your project.

What does Finding Seams need to run?

SKILL.md names no scripts, command-line tools or credentials: Finding Seams is instructions for the agent only.

Does Finding Seams access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Finding Seams safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Finding Seams use?

Finding Seams has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Finding Seams use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Finding Seams?

Skills that share tags, products or a category with Finding Seams: Skill Writing (millionco/expect, 3.6k stars), Go Rig (mudrii/openclaw-dashboard, 457 stars), Go Rig (mudrii/openclaw-dashboard, 457 stars) and Py Rig (mudrii/hermesd, 118 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Finding Seams?

citypaul (a GitHub user) maintains it in citypaul/.dotfiles, which has 740 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 9, 2026.

Source: citypaul/.dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.