potpie-graph
Use when the task can read or write the project-memory graph through the potpie CLI: discover…
Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project
$ npx -y skills add potpie-ai/potpie --skill potpie-project-preferences --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/potpie-project-preferencesContext preview
The summary Claude sees to decide when to auto-load this skill.
Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project
name: potpie-project-preferences description: "Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project preference should be recorded."
Use this skill before implementation or review so local conventions shape the work instead of being rediscovered from code.
1. Identify the narrowest scope you know: repo, path, service, package, or file. 2. Expand the user's task into preference search terms: error handling, retries, validation, logging, observability, framework, folder layout, tests, dependency choice, security, API shape, naming. 3. Read preferences with the graph workbench:
potpie graph read \ --subgraph decisions \ --view preferences_for_scope \ --scope repo:<owner-repo>,path:<path-or-dir> \ --query "<expanded preference query>" \ --limit 12
If the scope is unclear, first use `potpie --json pot info` and `potpie --json source list`, or search entities:
potpie graph search-entities "<repo service package>" --type Service --limit 10
Treat returned preferences as implementation constraints. Prefer active, higher-confidence, closer-scope preferences over broad ones: file, directory, service, repo, global. If two preferences conflict, verify source refs or ask the user before choosing.
Do not quote Potpie context back unless it matters. Use it to write better code.
Record only reusable, explicit preferences that are likely to matter again. Do not turn one-off implementation choices into project policy.
Use the workbench write flow:
potpie --json graph catalog --task "record coding preference" potpie graph search-entities "<scope>" --type Service --limit 10 potpie --json graph describe decisions --view preferences_for_scope --examples potpie --json graph propose --file mutation.json potpie --json graph commit <plan_id> --verify potpie --json graph history --plan <plan_id>
A good preference write includes the policy kind, prescription, strength, audience, scope, truth class, evidence or source refs when available, and a retrieval-grade description with the terms future agents would search.
Preference capture is harness-led: read the source yourself, then write semantic facts. Do not use scanner-driven graph updates or infer policy from code shape alone.
Use 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 when establishing, refreshing, or deeply understanding a repository's baseline memory in…
Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR,…