potpie-graph
Use when the task can read or write the project-memory graph through the potpie CLI: discover…
Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when
$ npx -y skills add potpie-ai/potpie --skill potpie-source-ingestion --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/potpie-source-ingestionContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when
name: potpie-source-ingestion description: "Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed semantic mutations, and writes through graph propose/verified commit."
Use this skill for explicit ingestion requests. The harness is the intelligence: it gathers source data, reads it, decides what is durable, resolves identity, and writes semantic graph mutations with evidence. Potpie validates and stores; it does not decide what source material means.
jump directly from a README to graph writes.
updates are forbidden. Inspect files with `rg`, `rg --files`, `git`, and structured tooling; do not run legacy or deterministic ingestion/scanner commands that walk the tree and write graph facts.
selection, identity resolution, mutation proposals, commits, and final synthesis.
unavailable, or intentionally scoped out by the user.
compact summary, and retrieval-grade description.
1. Define source kind, pot/project, repo/path/URL, time window, and target memory shape: baseline, history, docs, infra, debug memory, preferences, or all. 2. Verify Potpie scope and graph availability:
potpie --json pot info potpie --json source list potpie --json graph status potpie --json graph catalog --task "harness-led source ingestion"
3. If the repo is not registered, register metadata only. Use explicit `--pot` when pot scope is ambiguous:
potpie source add repo . --pot <pot-id-or-name>
4. Describe the views you expect to write/read before authoring mutations:
potpie --json graph describe features --view feature_context --examples potpie --json graph describe infra_topology --view service_neighborhood --examples potpie --json graph describe recent_changes --view timeline --examples potpie --json graph describe decisions --view preferences_for_scope --examples potpie --json graph describe debugging --view prior_occurrences --examples
5. If the CLI is unavailable or broken, continue discovery, build the proposed evidence matrix, and stop before committing graph writes.
Create and maintain todos with at least these lanes for repository ingestion:
tests, framework config, major modules, generated/API specs.
deploy scripts, environment templates, feature flags.
queues, auth providers, external APIs.
issues, linked tickets/docs, CI/deploy records.
release/deploy/runbook workflows.
proposal, verified commit, and gate-driven follow-up checks.
Update todos as lanes finish. Preserve uncertain findings for the inbox instead of forcing them into canonical graph claims.
Parallelize independent read-only slices when tools allow it. Recommended subagent prompts:
product pages. Return product purpose, features, explicit decisions, preferences, workflows, and source refs. Do not write mutations."
route/API surfaces, tests, and framework config. Return service/module map, likely features, explicit source files, uncertainty, and no mutations."
templates. Return environments, deploy shape, config variables, workflows, datastores, and source refs. Do not write mutations."
datastores, queues, auth, and external integrations. Return candidate APIContract/DataStore/Adapter/Dependency facts with evidence. No mutations."
merged PRs, open issues, linked tickets/docs, and CI signal. Return timeline, fixes, decisions, bug patterns, and source refs. No mutations."
guides, PR templates, and comments. Return only explicit reusable policies with evidence. No mutations."
The main agent should continue non-overlapping discovery while subagents run.
Use structured, bounded local inspection. Examples:
rg --files -g 'README*' -g 'docs/**' -g '*ADR*' -g 'package.json' -g 'pyproject.toml' -g 'Cargo.toml' -g 'go.mod'
rg --files -g 'Dockerfile*' -g 'docker-compose*' -g '.github/workflows/**' -g '*.tf' -g 'k8s/**' -g '.env*'
rg -n "FastAPI|APIRouter|express\\(|router\\.|Django|Flask|NextResponse|route\\(" .
rg -n "postgres|mysql|redis|mongo|s3|kafka|rabbit|queue|oauth|stripe|slack|github|linear|jira" .
rg -n "pytest|vitest|jest|playwright|make test|npm test|uv run|cargo test" REUse when the task can read or write the project-memory graph through the potpie CLI: discover…
Use when an agent needs recent or historical change context: what changed recently,…
Use while debugging or troubleshooting failures, flaky tests, incidents, production alerts,…
Use for project infra and architecture context: environments, adapters, runtime…
Use before writing, modifying, reviewing, refactoring, or testing code so repo/project…
Use when establishing, refreshing, or deeply understanding a repository's baseline memory in…