agentleFS
fabio-rovaifabio-rovai/brain-in-the-fish/SKILL.md

brain-in-the-fish

Skill88 starsChanged 8 months agoMITView on GitHub

Universal document evaluation engine — evaluate any document against any criteria using cognitively-modelled AI agents with ontology-grounded scoring

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When orchestrating with multiple Claude subagents:

    line 63
  2. Distinctive:

    When scoring as an agent persona:

    line 79

≈ “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

Brain in the Fish — MCP Skill Guide

What This Does

Brain in the Fish evaluates documents (essays, policies, contracts, clinical reports, surveys) against evaluation criteria using a panel of AI agents. Each agent's mental state exists as OWL ontology. Scoring is grounded in an Evidence Density Scorer (EDS) that makes hallucination mathematically detectable.

MCP Tools Available

ToolPurposeWhen to Call
eval_statusCheck server status and session stateFirst — verify server is running
eval_ingestIngest a document (PDF/text)Step 1
eval_criteriaLoad evaluation frameworkStep 2
eval_alignAlign document sections to criteriaStep 3
eval_spawnGenerate evaluator agent panelStep 4
eval_scoring_tasksGet all scoring prompts for subagentsStep 5
eval_score_promptGet scoring prompt for one agent/criterion pairStep 5 (per-task)
eval_record_scoreRecord a score from an agentStep 6
eval_debate_statusCheck disagreements and convergenceStep 7
eval_challenge_promptGet challenge prompt for debateStep 7 (per-challenge)
eval_reportGenerate final evaluation reportStep 8
eval_whatif"What if" re-scoring with modified textOptional

Evaluation Workflow

Quick Mode (deterministic, no subagents needed)

eval_ingest → eval_criteria → eval_align → eval_spawn → eval_report

The server runs evidence scoring internally. eval_report produces a complete evaluation with deterministic scores.

Full Mode (with Claude subagent scoring)

1. eval_ingest(path, intent)
2. eval_criteria(framework_or_intent)
3. eval_align()
4. eval_spawn(intent)
5. eval_scoring_tasks() → get all tasks
6. For each task:
   - Read the scoring prompt
   - Evaluate the document content against the criterion as the agent persona
   - eval_record_score(agent_id, criterion_id, score, justification, evidence, gaps)
7. eval_debate_status() → check for disagreements
8. If disagreements:
   - eval_challenge_prompt(challenger, target, criterion)
   - Generate challenge argument
   - eval_record_score() with revised score
   - Repeat until converged
9. eval_report() → final report

Subagent Dispatch Pattern

When orchestrating with multiple Claude subagents:

Orchestrator reads eval_scoring_tasks()
  → For each agent in the panel:
      Dispatch subagent with system prompt from eval_scoring_tasks
      Subagent receives: persona, criteria, document sections
      Subagent calls eval_record_score with their assessment
  → After all scores recorded:
      Check eval_debate_status
      If disagreements: dispatch challenge subagents
  → eval_report for final output

Scoring Guidelines for Subagents

When scoring as an agent persona:

  1. Read the document content provided in the scoring prompt carefully
  2. Reference the rubric levels — state which level the document meets
  3. Cite specific evidence from the document text (quote directly)
  4. Identify gaps — what's missing that would improve the score
  5. Be the persona — a Subject Expert scores differently from a Writing Specialist
  6. Do not hallucinate — only reference evidence that appears in the provided text
  7. Use the full scale — don't cluster all scores at 6-8. Use 1-10 range appropriately.

Response Format for eval_record_score

{
  "agent_id": "from the scoring task",
  "criterion_id": "from the scoring task",
  "score": 7.5,
  "max_score": 10.0,
  "round": 1,
  "justification": "Detailed justification referencing specific document content and rubric levels. This section meets Level 3 (score range 6-8) because it demonstrates [specific evidence]. To reach Level 4, the document would need [specific improvement].",
  "evidence_used": ["Direct quote from document", "Another quote"],
  "gaps_identified": ["Missing topic X", "No counter-argument for claim Y"]
}

Supported Document Types

TypeIntent KeywordsFramework Auto-Selected
Academic essay"essay", "mark", "grade", "coursework"Academic Essay Marking
Policy document"policy", "green book", "impact assessment"HM Treasury Green Book
Survey/research"survey", "methodology", "questionnaire"Survey Methodology
Contract/legal"contract", "legal", "compliance"Contract Review
Clinical/NHS"nhs", "clinical", "patient", "governance"NHS Clinical Governance
GCSE English"gcse", "english language"GCSE English Language
Genericanything elseGeneric Quality

Architecture Notes

  • Three ontologies coexist in one Oxigraph triple store: Document, Criteria, Agent
  • Evidence scorer provides deterministic evidence-grounded scoring baseline
  • Validation signals (citations, structure, reading level, fallacies, hedging) feed into the scorer as spikes
  • Epistemic state tracks justified beliefs with empirical/normative/testimonial bases
  • Philosophical analysis applies Kantian/utilitarian/virtue ethics lenses
  • Belief dynamics — Maslow needs update based on findings, trust evolves during debate
  • Cross-evaluation memory persists results for historical comparison
  • All triples are queryable via SPARQL through the underlying onto_* tools

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.