add-new-resource
Ingest a file into the knowledge base: copy into /raw, evaluate, index in /wiki. Use when handed a document, transcript, export, or text dump to add to the workspace.
SKILL.md.claude/skills/add-new-resource/SKILL.md
GitHubAdd New Resource
Ingest one resource into the knowledge base. $ARGUMENTS is either a file path
or pasted raw content. If empty, ask for one.
Process
- Acquire. If given a path, read the file. If given pasted content, use it directly. If the content is unreadable or empty, stop and say so.
- Copy into
/raw. Write it toraw/YYYY-MM-DD_<source>_<topic>.mdusing today's date, a short source slug (e.g.meeting,export,notes), and a 2-4 word topic slug. Never overwrite an existing raw file — suffix-2if the name collides. Do not modify the original content beyond adding a one-line provenance header (> Source: <original path or "pasted">, added YYYY-MM-DD). - Evaluate. Read the content and extract:
- One-line summary (under 120 chars)
- 2-5 tags
- Any recurring mistakes, decisions, goals, or skill opportunities it reveals
- Index in
/wiki. Add a row to the Resources table inwiki/index.md(date, relative file link, source, summary, tags). - Update topic pages. If the resource matches an existing
wiki/<topic>.mdpage, append its key points there with a link back to the raw file. If 3+ indexed entries now share a theme with no topic page, create one and register it in the Topic Pages table. - Report. Tell the user the raw filename, the summary, and which wiki entries were touched.
Rules
- Raw files are append-only: never edit or delete existing files in
/raw - Never skip indexing — an unindexed raw file is invisible to the system
- Do not commit unless the user asks