agentleFS
flytohubflytohub/flyto-indexer/skills/security-triage/SKILL.md

security-triage

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Turn a large codebase into a short, ranked reading list of security-relevant code paths worth a human researcher's time, using the flyto-indexer MCP tools. Use when asked to find, prioritize, or triage potential vulnerabilities / taint flows / attack surface in a repository indexed (or indexable) by flyto-indexer — "what should I look at first", "where are the risky paths", "security review this repo". Produces a reading list, never a verdict.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. awarexone/AXguard★ 18same name
    2. clawsouls/soulclaw★ 9same name
    3. kontourai/station★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    The output is a prioritized reading list, not a judgement: Every item says what evidence put it there and how strong that evidence is.

    line 22
  2. Distinctive:

    Run the stages in order. Each stage narrows.

    line 38
  3. Very specific:

    If .flyto-index/ is missing, run flyto-index scan .

    line 43
  4. Very specific:

    Hard budget: cap call_hierarchy at 8 calls per run: Never LSP the whole repository.

    line 79
  5. Distinctive:

    Never present a candidate as a vulnerability.

    line 105

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security research triage

A budget-aware funnel over the flyto-indexer MCP tools. It narrows a whole repository to the handful of code paths worth reading, spends expensive verification only on that handful, and hands the result to a human as an evidence package.

The intelligence is in the sequencing and the stop rules, not in any one tool. flyto-indexer stays a set of dumb, lean tools; this skill is the smart caller.

The output is a prioritized reading list, not a judgement. Every item says what evidence put it there and how strong that evidence is. A researcher decides what is real.

Tools this skill drives (all already in flyto-indexer — nothing new)

  • research_priority — the ranked candidate list (fuses taint reachability, sink severity, complexity, git churn, test gaps, error handling). CLI: flyto-index research-priority.
  • call_hierarchy — LSP-resolved call edges. Type-aware; expensive, so used only on the shortlist.
  • impact — references / blast radius / reachability of a symbol.
  • search, structure — context when a candidate needs it.

The funnel

Run the stages in order. Each stage narrows; cost rises. Stop as soon as a stage gives the researcher enough — do not run later stages out of habit.

Stage 0 — Is there an index?

If .flyto-index/ is missing, run flyto-index scan . once. Otherwise skip.

Stage 1 — Proven flows first (cheap, high confidence)

research_priority(project=<name>, top_n=20, include_unproven=false)

Proven source-to-sink flows are near-certain leads. If this returns any, they are the top of the reading list immediately — a proven flow outranks every unproven lead. If it returns enough for the researcher (say ≥ 5 strong ones), you may hand off now and skip the deeper stages.

Stage 2 — Ranked leads (the wide net, already fused)

research_priority(project=<name>, top_n=20)

The score already fuses git churn, complexity, test gaps and evidence tier — do not re-run those tools per candidate, read the reasons/signals the result already carries. Keep the top ~8 for Stage 3; the rest stay on the list below the shortlist.

Stage 3 — Selective verification (expensive — SHORTLIST ONLY)

This is where name-based imprecision is bought back with type resolution, but only for the ~8 shortlisted candidates, never the whole graph. This is what lets a polymorphic call (a method with many same-named definitions) resolve without baking whole-program dataflow into the engine.

For each shortlisted candidate:

  • call_hierarchy(path=<file>, line=<sink line>, direction="incoming") — resolve who really reaches this sink, and whether the cross-function attribution holds. If the language server resolves the call somewhere harmless, drop the candidate.
  • impact(target=<function>) — is this reachable from a route / entry point, or is it dead / internal-only? Unreachable ⇒ demote.

Hard budget: cap call_hierarchy at 8 calls per run. Never LSP the whole repository. If the shortlist is larger, verify the top 8 and say so.

Stage 4 — Evidence package (human handoff)

Emit the top 5–8 as a reading list. For each item:

  • file:line and function name
  • evidence tier (proven_flow_* > source_and_sink_same_function > sink_with_*) and whether Stage 3 confirmed or weakened it
  • the flow path (source → sink), and the LSP-resolved caller chain if Stage 3 ran
  • the signals that matter (churn, no test, error handling) — one line
  • one sentence: why this is worth 30 minutes

Then state plainly: this is a reading list; confirming exploitability, threat-model scope, and severity is the researcher's call.

Stop / budget rules (the wise part)

  • Enough proven flows ⇒ hand off, skip Stages 2–3.
  • call_hierarchy capped at 8 per run — the single most important rule for staying lean. The cost of this skill is bounded by design.
  • A candidate the LSP resolves to a safe/validated path ⇒ drop it.
  • A candidate not reachable from any entry point ⇒ demote, don't drop (it may become reachable).
  • Never present a candidate as a vulnerability. The engine finds paths; a human finds bugs.

Honest limits (state these when handing off)

  • Ranking recall is capped by taint recall, which is name-based across functions. Deep multi-hop flows through a polymorphic abstraction layer (e.g. a store/service interface with many same-named implementations) are not proven automatically — Stage 3's selective LSP recovers some, but a researcher's read is the backstop.
  • A large repo yielding few proven flows is not proof of safety; it is the honest floor. coverage in the result names what was not measured.

Where this belongs long-term

This skill is the first-run form: the model derives the funnel each time. Once a run is proven useful, capture it as a flyto-blueprint procedure (parameterized steps + assertions + evidence) so flyto-ai can replay it deterministically on the next repo without re-deriving the sequence. The skill stays the human-readable source of truth; blueprint/flyto-ai make it cheap and repeatable. Nothing here is ever added to flyto-indexer's 20-tool surface.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.