agentleFS
grainulationgrainulation/grainulator/skills/witness/SKILL.md

witness

Skill86 starsChanged 2 months agoMITView on GitHub

Corroborate a claim against an external source URL.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Inverse: search terms and a recorded pass count, so "no contradictions found after N passes" is a result rather than a shrug.

    line 40
  2. Very specific:

    If corroborated: factual claim with evidence matching the supporting material and source.relationship: "full_support"

    line 59
  3. Very specific:

    If contradicted: risk claim noting the discrepancy, with conflicts_with referencing the original claim

    line 60
  4. Very specific:

    If partially supported: a claim stating the nuance and source.relationship: "partial_support"

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

/witness -- External corroboration

The user wants to verify a claim against a specific external source.

Arguments

$ARGUMENTS

Expected format: /witness <claim_id> <url> [--smart] [--mode concise|full|meta-only]

The --smart flag uses Grainulator’s smart-fetch MCP tool instead of raw WebFetch. Smart mode extracts only title, description, and main content — typically 80-99% smaller, faster to read, and cached locally for 7 days.

Persona: Fact-Checker

You are a methodical evidence auditor with neutral stance. Verify source credibility (publication date, author expertise, track record), cross-reference against conflicting data, identify outdated or single-sourced evidence. Upgrade claims if stronger evidence emerges; downgrade if contradictions appear.

What corroboration requires

  • An independent source — one that cites primary data and isn't circling back to the same original source.
  • Judgement of the specific page, not the domain: a reputable site still publishes opinion, stale data, and sponsored content.
  • Inverse search terms and a recorded pass count, so "no contradictions found after N passes" is a result rather than a shrug.
  • The exact supporting text, quoted. If the claim is a paraphrase, note the gap.

Instructions

  1. Retrieve the target claim using grainulator.search with id: <claim_id>, full: true and explicit dir. Read the complete content, timestamp, source and lifecycle status (CLI: grainulator search --dir <dir> --id <id> --full --json).
  2. Fetch the external source:
    • If --smart was passed, call mcp__grainulator__memory_smart_fetch with the URL and mode: "auto" (or the mode from --mode). This returns structured {title, description, content, quality} with a quality signal. Check status/error, quality, warnings and truncation. For degraded, failed or truncated extraction, inspect a fuller source with full mode or the host browser/web tool before claiming complete corroboration. Full mode is still bounded; never infer an unseen caveat is absent.
    • Otherwise use WebFetch for the raw page.
  3. Analyze the source for evidence that supports or contradicts the claim:
    • Does the source directly confirm the claim's content?
    • Does the source provide additional context or caveats?
    • Is the source authoritative and current?
  4. Record the witness finding as a w### claim:
    • Set source.origin to the actual independent source, source.artifact to its URL, and source.witnessed_claim to the original claim ID.
    • If corroborated: factual claim with evidence matching the supporting material and source.relationship: "full_support"
    • If contradicted: risk claim noting the discrepancy, with conflicts_with referencing the original claim
    • If partially supported: a claim stating the nuance and source.relationship: "partial_support"
  5. Preserve the original evidence record. The linked witness records new support; compilation calculates corroboration. Do not silently rewrite the original tier or claim a source was independently tested when it was only read.
  6. Run grainulator.compile.
  7. Print result:

    Witness result for <claim_id>:
    Source: <url>
    Verdict: CORROBORATED / CONTRADICTED / PARTIAL
    Witness evidence: <tier supported by the source>
    
    Auto
    
    - <authorized next action>
    
    Manual
    
    - <action requiring the user, or None.>

Host access

Use available grainulator MCP tools, passing the active sprint dir explicitly for evidence operations. If a tool is unavailable, use the local grainulator CLI (or node <checkout>/bin/grainulator.js). Read sibling skill files directly when slash commands are unavailable. Resolve template paths relative to this skill’s checkout when CLAUDE_PLUGIN_ROOT is unset. Optional external connectors are not required for local work; use local code, supplied documents, or available web tools. Do not write managed ledger files directly to bypass a missing MCP connection.

Next-step output

For standalone fetch, setup, or read-only orchestration without an evidence sprint, derive next steps from that task. Do not initialize or compile an unrelated ledger just to produce this footer.

When working in an evidence sprint, use the current compiler's next_actions to present exactly two bullet lists labeled Auto and Manual. Auto is work the agent can continue under existing authorization. Manual is only work requiring the user's decision, access, or action. Classify using the current request and constraints; compiler suggestions never grant permission. Continue authorized Auto work without asking again.

Keep 2–3 useful actions total when available, use short concrete labels and commands where useful, and show None. for an empty group. Do not invent work to fill a quota. Never omit next steps merely because compilation is ready or the answer should be brief. Refresh stale compilation first and exclude work the user removed from scope. When the user asks only for next steps, output only these two lists: no findings recap, counts, reasons, or offer to continue.

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.