find

find is a skill for Claude Code, Codex from photostructure/coding-skills. It costs 82 tokens per session (818 once invoked), scanned A, original, MIT.

A local tool that identifies which coding-agent session created an uncommitted change in a file or code snippet. It searches the repository's diff and local agent transcripts, then provides a command to resume the session.

In plain words
What is it for?
Use it with a changed file or copied text to attribute the change, limit the search by age or number of candidates, and resume the matching session.
Why use it?
It removes the need to search old chats manually when you need the context behind a change or want to ask the original session to continue its work.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the coding plugin — 11 skills shipped together

Good fit Use it with a changed file or copied text to attribute the change, limit the search by age or number of candidates, and resume the matching session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/photostructure/coding-skills/find
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.

Any agent
npx skills add photostructure/coding-skills --skill find
Clone the repo
git clone --depth 1 https://github.com/photostructure/coding-skills

Made for: Claude Code, Codex.

Or install coding, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for find

README.md
[![agentmods](https://agentmods.dev/badge/skills/photostructure/coding-skills/find/github.svg)](https://agentmods.dev/skills/photostructure/coding-skills/find)
Your own site
<a href="https://agentmods.dev/skills/photostructure/coding-skills/find"><img src="https://agentmods.dev/badge/skills/photostructure/coding-skills/find/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for find

Your own site · 80×15
<a href="https://agentmods.dev/skills/photostructure/coding-skills/find"><img src="https://agentmods.dev/badge/skills/photostructure/coding-skills/find.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00082 $0.00818
Opus 5.5 $0.00033 $0.00327
Sonnet 5.5 $0.00016 $0.00164
Haiku 4.5 $0.00008 $0.00082

Measured 11d ago against content hash 0ece07e20780, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

find 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/find_session_test.py, scripts/find_session.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/coding/skills/find/SKILL.md · 77 lines

How it starts

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

Find the Session Behind a Change

More on these workflows: photostructure.com/coding (no dedicated find article yet)

Report which local agent session wrote a change that is still uncommitted, and give the user a command that resumes it.

Run the finder

Resolve the bundled scripts/find_session.py relative to this skill directory. Run it with the host's Python 3 launcher from inside the repository that holds the change:

python3 scripts/find_session.py <path-or-snippet>
  • A path to a file with uncommitted changes attributes that file's whole diff against HEAD.
  • Any other argument is a snippet of changed text. The finder locates it in the diff against HEAD, untracked files included, and attributes only the lines it spans. Indentation, line breaks, and leading comment markers are ignored, so a comment copied across wrapped lines still matches. Pass a multi-line snippet as one quoted argument.
  • --days N searches transcripts modified in the last N days (default 14). --limit N caps the candidates shown (default 5).

On Windows, py -3 is a common equivalent.

How it attributes a change

The finder reads the transcripts that both supported agent CLIs keep under the user's home directory; the script's docstring names the directories and the environment variables that relocate them. It keeps only writes that succeeded, and scores each session by how many of the target's changed lines its writes added or removed. It counts:

  • patches recorded by the file-editing tools;
  • patch envelopes applied through a code-execution tool;
  • shell commands that write the file and either name its absolute path or run inside its checkout, as weaker evidence, reported as "only through shell commands";
  • writes to a path that no longer exists but has the target's file name and lies inside the same checkout, outside git-ignored directories, because the file was moved after them.

Read the full file on GitHub · 77 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 77 lines · 82 tokens per session scan A 0ece07e20780

Subscribe to this mod's changes

find is a skill published in the GitHub repository photostructure/coding-skills (4 stars, last pushed 3d ago), licensed MIT. It adds 82 tokens to every session and 818 once invoked, about $0.0003 per session on Opus 5.5. 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-09-26.

Related

Other skills, from other repositories

pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 59 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

signing-preflight

Before the first commit of a session, check that commit signing will work — the key is loaded and unlocked — and ask the operator to unlock it once, up front, instead of discovering it after a hundred unsigned commits. Never disables signing silently, never re-signs history without asking. Use at the start of…

avelikiy/great_cto · 105 tokens

github-pr-creation

Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing…

fvadicamo/dev-agent-skills · 75 tokens

git-commit

Creates git commits following Conventional Commits format with type/scope/subject. Use when user wants to commit changes, create commit, save work, or stage and commit. Enforces project-specific conventions from CLAUDE.md.

fvadicamo/dev-agent-skills · 49 tokens

phx-watch-pr

Watch an Elixir/Phoenix PR with an Amp Orb keep-alive lease until required non-deployment CI is green and review threads are resolved.

oliver-kriska/claude-elixir-phoenix · 35 tokens