agentleFS
amanjotxamanjotx/Agent-Skills/skills/ingest/SKILL.md

ingest

Skill0 starsChanged 54 days agoMITView on GitHub

Deeply explore a codebase — intent, problem, current standing, and wiring — then persist one Hydra standing document with a git sync waypoint. Use when the user says /ingest, ingest, map this repo into hydra, or asks for a full project memory bootstrap.

  • Reads credentials

88 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • phanghonghaoSkill

    poster

    HTML/CSS A4 海报生成。从沙龙/活动 Markdown 文件生成科技风 A4 海报 PDF/PNG。Use when user mentions: poster, 海报, 海报生成, make poster, generate poster, 活动海报, 沙龙海报.

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 72 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every successful ingest MUST record a Sync waypoint (commit hash + metadata) at the top of standing so later /hydrate runs can diff from a …

    line 20
  2. Very specific:

    Never store secrets, .env values, tokens, private keys, or credentials.

    line 31
  3. Distinctive:

    Not a file dump, chat transcript, session checkpoint, or raw tree listing.

    line 32
  4. Distinctive:

    Keep the skill project-agnostic.

    line 33
  5. Distinctive:

    Never invent a git sha.

    line 46
  6. Very specific:

    Use the hydradb CLI. HYDRADB_API_KEY and HYDRADB_DATABASE come from the shell.

    line 59
  7. Distinctive:

    If standing only lists folders and “auth exists,” it is a skim — go back to exploration before writing.

    line 86
  8. Distinctive:

    Prefer disk folder names over README aliases.

    line 94
  9. Very specific:

    Use Glob/Grep/Read and explore subagents.

    line 110
  10. Very specific:

    Every app/service/package/crate — role, stack, maturity (real/stub)

    line 122
  11. Distinctive:

    Stop when you can explain a request’s path across at least one real vertical (e.g.

    line 130
  12. Very specific:

    Write one markdown document (title {Project} — standing).

    line 147

“Common” is measured: kept by at least 6 in 10 of the 72 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

/ingest

Build a high-fidelity mental model of the current repository and the product it is trying to become, then persist one standing document so a new agent can orient with a single inspect — without skimming folder names.

This is the full bootstrap path (depth over speed). Prefer /hydrate for routine sync after {project}-standing already exists.

Every successful ingest MUST record a Sync waypoint (commit hash + metadata) at the top of standing so later /hydrate runs can diff from a trusted benchmark.

Hard rules

  • Code is implementation truth. Product markdown is for intent. If they conflict, standing must say so (code wins for “what exists”; dated product locks win for “what we are building next” only when still explicitly locked).
  • Do not dump CONTEXT.md, PRODUCT.md, HANDOFF.md, or long spec files into Hydra. You may and should read them (and similar docs/* locks) to distill problem, audience, and destination into short standing sections.
  • Never store secrets, .env values, tokens, private keys, or credentials.
  • Not a file dump, chat transcript, session checkpoint, or raw tree listing.
  • Keep the skill project-agnostic. Infer names, stacks, and commands from the repo.
  • Exactly one project source_id: {project}-standing, stored as knowledge (shared project doc). Never create {project}-codebase-map, {project}-product-locked, {project}-decisions-*, or {project}-scars.
  • Upsert that id as knowledge. Delete leftover sibling ids, and any leftover memory with the same id.
  • Standing writes: knowledge, infer: false. Bare hydradb ingest --text writes the memory store (1000 memory_tokens / request, replace-not-append) — do not put standing there. infer: true is only for messy chat/signal into memory (e.g. collection personal). Too short to explain why the product exists and what is not built yet is a failed ingest.
  • Personal prefs/skills belong in collection personal, not in project standing.
  • Never invent a git sha.

Identity

Derive {project} as a lowercase hyphenated slug. Announce once (e.g. Using standing id: shepherd-standing).

Pin collection with --collection {project} on every CLI call (or source a repo-local .cursor/hydradb.project.env for this session). Never export HYDRADB_COLLECTION in the shell profile. Do not use Hydra MCP.

Transport (CLI)

Use the hydradb CLI. HYDRADB_API_KEY and HYDRADB_DATABASE come from the shell. Always pass --collection {project}.

hydradb inspect {project}-standing --collection {project}
hydradb list --kind knowledge --collection {project}
hydradb ingest --kind knowledge --text "…" \
  --source-id {project}-standing --title "{Project} — standing" \
  --no-infer --collection {project}
hydradb delete ID --kind knowledge --collection {project} --yes

File-path ingest cannot set --source-id; standing must use --kind knowledge --text. Do not pipe a long file into bare hydradb ingest (that is memory).

Quality bar (fail ingest if unmet)

A new agent who only inspects standing must be able to answer:

  1. Problem — what operator/user failure this repo exists to fix
  2. Product — one-liner, who it’s for, what it is not
  3. Now vs next — what code actually does today vs locked destination slice
  4. Layout + wiring — packages, entrypoints, request/data/UI flows
  5. Contracts — invariants that break the product if ignored + verify commands
  6. Decisions + scars — why, wire path, what not to reintroduce
  7. Waypoint — git sha for /hydrate

If standing only lists folders and “auth exists,” it is a skim — go back to exploration before writing.

Workflow

1. Identify the project

Display name, slug, monorepo vs single package, languages from manifests. Prefer disk folder names over README aliases.

2. Collect sync waypoint (git)

  • git rev-parse HEAD / --short=12 / --abbrev-ref HEAD
  • git log -1 --format=%s and %cI
  • git status --porcelain (no secrets in memory)

3. Check existing Hydra state

hydradb inspect {project}-standing --collection {project} only. hydradb list --kind knowledge --collection {project} (and --kind memory if needed) to find siblings to delete later. Do not query-scatter for orientation.

4. Deep dive (required — not a catalog pass)

Use Glob/Grep/Read and explore subagents. Read real entrypoints and call chains, not just package.json descriptions.

Intent (distill, don’t paste)

  • Product/vision docs if present (PRODUCT.md, HANDOFF.md, locked docs/*)
  • README one-liner vs code reality
  • Audience, in/out of scope, differentiation — 8–15 lines max in standing

Implementation

  1. Root & tooling — manifests, CI, verify scripts, pre-commit
  2. Every app/service/package/crate — role, stack, maturity (real/stub)
  3. Domain surfaces — routes, Tauri commands, UI gates, workers, queues, schema
  4. Wiring — who calls whom; auth cookies vs Bearer; local ports
  5. Persistence & externals — DB, KV, queues, third-party APIs (names only)
  6. Auth / tenancy / security if present
  7. Tests that exist vs missing
  8. Gaps — stubs, TODOs that change architecture

Stop when you can explain a request’s path across at least one real vertical (e.g. desktop login → API → DB) and name every fake surface an agent might mistake for shipped.

5. Synthesize

Internal model before writing:

  • Problem + thesis
  • Locked destination (clearly labeled not shipped if code disagrees)
  • Current standing
  • Layout + wiring + auth/API surface table if auth-heavy
  • Contracts, decisions, scars, gaps
  • Pointers to long specs (“read X when implementing Y”) — not the spec body

6. Persist

Write one markdown document (title {Project} — standing). Ingest as knowledge under source_id {project}-standing, --no-infer. Do not use memory ingest / sequential memory chunks for standing. Do not invent extra ids.

hydradb ingest --kind knowledge --text "$(cat standing.md)" \
  --source-id {project}-standing --title "{Project} — standing" \
  --no-infer --collection {project}
# {Project} — standing

## Sync waypoint

## Problem

## Product

## Destination (locked, not necessarily shipped)

## Layout + wiring

## Current standing

## Contracts

## Decisions

## Scars

## Gaps

## Spec pointers

Then delete leftover sibling ids (*-codebase-map, *-decisions-*, *-scars, *-product-locked).

7. Report back

Slug, standing id, waypoint, 8–12 line orientation (problem + now + next), gaps, docs distilled vs skipped. Do not dump the full markdown unless asked.

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.