agentleFS
unclejobs-aiunclejobs-ai/second-claude-code/skills/collect/SKILL.md

collect

Skill41 starsChanged 7 days agoMITView on GitHub

Use when collecting URLs, notes, files, or excerpts into structured PARA knowledge

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    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. Very specific:

    Check existing knowledge: search <plugin-data>/knowledge/ for items with overlapping tags or titles before creating a new entry.

    line 35
  2. Very specific:

    If no specific connection exists, set connections to an empty array.

    line 83
  3. Distinctive:

    Do not store the source verbatim.

    line 94
  4. Distinctive:

    Do not create vague connections like "related to AI."

    line 95
  5. Distinctive:

    Do not create a new entry when an update to an existing entry would suffice.

    line 96
  6. Distinctive:

    Do not skip the output verification step.

    line 97
  7. Very specific:

    When classification is ambiguous, default to resource.

    line 98

“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

Resolve runtime paths before file or script operations.

Iron Law

Collected knowledge must always be classified.

Red Flags

  • "Just save it, I'll organize it later" → STOP, because every collected item must be PARA-classified at capture time — unclassified dumps rot in storage.
  • "This is related to AI" → STOP, because connections must name a specific principle, pattern, or concept — topic-level connections ("related to AI") fail the quality gate.
  • "I'll create a new entry for this" → STOP, because you must search existing knowledge first — duplicates fragment the knowledge base and waste future search time.
  • "I'll just copy the whole article" → STOP, because the analyst must extract and reduce to exactly 3 key points — verbatim storage is not collection.
  • "The connection is obvious, I don't need a separate agent" → STOP, because the connector must run as a separate subagent without seeing the analyst's framing — inline connection finding introduces bias.

Collect

Collect a source, reduce it, connect it to existing knowledge, and store it in a PARA-shaped knowledge base.

When to Use

  • Save a URL, note, file, or excerpt for later use
  • Preserve a useful insight from the current conversation
  • Archive findings from another skill such as /scc:research

Workflow

  1. Check existing knowledge: search <plugin-data>/knowledge/ for items with overlapping tags or titles before creating a new entry. If a duplicate exists, update it instead of creating a new one.
  2. Detect source type: URL, raw text, file path, or search request. Fetch here, not later — the analyst agent has no web tools, so a URL must be resolved to text before dispatch (use /scc:unblock if the page is gated).
  3. Dispatch the analyst subagent (extract + reduce): Extract the useful content, strip boilerplate, produce exactly 3 key points and a short summary. This MUST run as a separate subagent, not inline.
  4. Dispatch the knowledge-connector subagent (find shared concept): Using only the stored knowledge base (not the analyst's output framing), find a specific shared concept connecting the new item to existing knowledge. This MUST run as a separate subagent to prevent bias from the analyst's framing.
  5. Merge analyst and connector outputs.
  6. Classify it into PARA and save structured JSON + markdown.
  7. Verify output: Confirm JSON has all required fields, key_points has exactly 3 items, connections pass the quality gate. If any check fails, fix before saving.

PARA Criteria

CategoryRule
projectActive work with a deadline or deliverable
areaOngoing responsibility
resourceReference material
archiveInactive material

Options

FlagValuesDefault
--tags"tag1,tag2"auto
--categoryproject|area|resource|archiveauto
--search"query"off
--connecttrue|falsetrue

Storage

Data directory: Resolve <plugin-data> through the runtime path contract. Before writing state files, verify the directory exists with mkdir -p.

  • Path: <plugin-data>/knowledge/{para-category}/{slug}.json
  • Required fields: title, source, source_type, collected_at, category, tags, summary, key_points, connections
  • key_points must contain exactly 3 items

Dual Output

Each item is saved as .json (machine-readable index) and .md (YAML frontmatter + readable prose) at the same slug path. See references/para-method.md for the markdown template and search ranking weights.

Connection Quality Gate

A connection must name a specific principle, pattern, or concept — not a topic or domain.

PASSFAIL
"Applies the Observer pattern — both use event-driven decoupling""Related to software design"
"Shares the PARA progressive summarization principle""Also about knowledge management"
"Uses the same cold-start mitigation as Netflix recommendations""Similar to AI"

If no specific connection exists, set connections to an empty array. Never force a connection.

Search Mode

Trigger: pass --search "query" instead of a source to retrieve rather than save. Invocation: /scc:collect --search "query" What it does: scans all stored JSON under <plugin-data>/knowledge/, ranks results by tag overlap and title similarity, and returns the top matches with their summary and PARA category. See references/para-method.md for full ranking weights.

Gotchas

  • Do not store the source verbatim.
  • Do not create vague connections like "related to AI."
  • Do not create a new entry when an update to an existing entry would suffice.
  • Do not skip the output verification step.
  • When classification is ambiguous, default to resource.

Subagents

analyst: { model: sonnet, tools: [Read, Grep, Glob], constraint: "produce exactly 3 key points", dispatch: required }
knowledge-connector: { model: haiku, tools: [Glob, Read], constraint: "name a specific shared concept", dispatch: required }

Dispatch requirement: Both subagents MUST be dispatched as separate agents (e.g., via superpowers:dispatching-parallel-agents). Running either inline violates isolation: the connector must not see the analyst's framing, only the raw source and existing knowledge base. If subagent dispatch is unavailable, run them sequentially with explicit context barriers — pass only the original source URL/text to the connector, never the analyst's summary.

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.