agentleFS
pyrite-wikipyrite-wiki/pyrite/.claude/skills/research-flow/SKILL.md

research-flow

Skill9 starsChanged 2 months agoMITView on GitHub

Use when conducting structured research on a topic across Pyrite knowledge bases. Enforces a Gather-Connect-Analyze-Synthesize methodology with source tracking and confidence assessments.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before searching, establish what you're looking for and why.

    line 18
  2. Distinctive:

    Create a task list with TaskCreate to track progress through the phases.

    line 29
  3. Distinctive:

    Search systematically — don't stop at the first few results.

    line 35
  4. Very specific:

    Read the full entry: pyrite get <entry-id>

    line 61
  5. Distinctive:

    Create a synthesis entry that brings it all together.

    line 142
  6. Distinctive:

    Use the template from synthesis-template.md to structure the output.

    line 144

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

Research Flow Skill

Structured research methodology for Pyrite knowledge bases. Produces a synthesis entry backed by sourced evidence.

Announce at start: "I'm using the research-flow skill."

Methodology: Gather → Connect → Analyze → Synthesize


Phase 1: Define Scope

Before searching, establish what you're looking for and why.

SCOPE CHECKLIST:
- [ ] Research question stated as a single sentence
- [ ] Relevant KBs identified (pyrite list)
- [ ] Known entry types to look for (events, people, organizations, documents)
- [ ] Date range if applicable
- [ ] What would a "complete" answer look like?

Create a task list with TaskCreate to track progress through the phases.


Phase 2: Gather Sources

Search systematically — don't stop at the first few results.

# Broad keyword search
pyrite search "<topic>" --limit 30

# Narrow by KB and type
pyrite search "<topic>" --kb=<name> --type=event
pyrite search "<topic>" --kb=<name> --type=person

# Semantic search for conceptually related content
pyrite search "<topic>" --mode=semantic --limit 20

# Hybrid for best coverage
pyrite search "<topic>" --mode=hybrid --limit 20

# Tag-based discovery
pyrite tags --kb=<name>
pyrite search "<topic>" --tag=<relevant-tag>

# Timeline for temporal context
pyrite timeline --from=<start> --to=<end>

For each relevant result:

  1. Read the full entry: pyrite get <entry-id>
  2. Check backlinks: pyrite backlinks <entry-id> --kb=<name>
  3. Note key claims and their source quality (see source-assessment.md)

If information is missing from the KB: Note the gap. If you have reliable external information, create an entry:

pyrite create --kb=<name> --type=document --title="<source title>" \
  --body="<key content>" --tags="source,<topic>"

Gather completeness check:

- [ ] Searched all relevant KBs (not just one)
- [ ] Used multiple search modes (keyword, semantic, hybrid)
- [ ] Followed backlinks from key entries
- [ ] Checked timeline for temporal context
- [ ] Noted gaps where KB coverage is thin

Phase 3: Connect

Map relationships between findings.

  1. Identify patterns — What themes repeat across sources? What entities appear in multiple contexts?
  2. Build a timeline — Order events chronologically. Note what happened before/after key events.
  3. Map actors — Who is connected to whom, through what events or organizations?
  4. Follow link chains — Use backlinks to find entries you didn't find through search.
# Find connections from a key entry
pyrite backlinks <entry-id> --kb=<name>

# Get full entry with links
pyrite get <entry-id>

Connection checklist:

- [ ] Key entities listed with their roles
- [ ] Timeline of relevant events constructed
- [ ] Relationships between entities documented
- [ ] Unexpected connections noted

Phase 4: Analyze

Assess what the evidence actually supports.

For each major claim or finding:

QuestionAnswer
How many independent sources support this?
What is the highest-quality source?
Are there contradictions between sources?
What is NOT said that you'd expect?
What alternative explanations exist?

Use the source assessment rubric from source-assessment.md to rate each source.

Analysis checklist:

- [ ] Each claim attributed to specific source(s)
- [ ] Contradictions between sources identified
- [ ] Gaps in evidence noted explicitly
- [ ] Alternative interpretations considered
- [ ] Confidence level assigned (high/medium/low) per finding

Phase 5: Synthesize

Create a synthesis entry that brings it all together.

Use the template from synthesis-template.md to structure the output.

pyrite create --kb=<name> --type=note --title="Research: <topic>" \
  --body="<synthesis content>" --tags="research,synthesis,<topic>"

The synthesis entry must include:

  1. Research question — What was asked
  2. Key findings — Numbered list, each with confidence level
  3. Evidence summary — Which entries support each finding (use [[wikilinks]])
  4. Gaps and limitations — What the KB doesn't cover
  5. Recommendations — Next steps for deeper investigation

Synthesis checklist:

- [ ] Research question clearly stated
- [ ] Each finding has a confidence level (high/medium/low)
- [ ] Each finding links to supporting entries via [[wikilinks]]
- [ ] Contradictions and alternative interpretations noted
- [ ] Gaps explicitly listed
- [ ] Recommendations for follow-up research

Confidence Levels

LevelMeaning
HighMultiple independent, reliable sources agree. No significant contradictions.
MediumSupported by at least one reliable source, but not fully corroborated. Minor gaps.
LowSingle source, or sources of uncertain reliability. Significant gaps or contradictions.
SpeculativeInference from indirect evidence. Explicitly flagged as interpretation.

Anti-Patterns

TrapFix
Stopping after first searchUse all 3 search modes. Check backlinks. Search related terms.
Treating all sources equallyApply source assessment rubric to every source.
Ignoring contradictionsContradictions are signal. Investigate, don't smooth over.
Presenting speculation as factAlways tag confidence level. Use "suggests" not "proves" for medium/low.
Skipping the gaps sectionKnowing what you don't know is as valuable as what you do know.
Monster entry with everythingFindings should be concise. Link to full entries for detail.

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.