/shared:partdbfrom shared
Manages Part-DB inventory workflows: search, schema discovery, stock lookup, and safe part-lot quantity updates with preview-gated approval.
Ships in shared. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill for Part-DB inventory workflows. Keep this public skill generic; the instance, credentials, inventory, and local organization conventions belong in private context.
Use Part-DB for countable items with a physical location or stock-management reason, such as components, tools, hardware, consumables, and supplies. Do not force project plans, maintenance history, warranties, receipts, or unrelated one-off possessions into an inventory workflow.
Do not configure an MCP server as a side effect. If the user already has a trusted Part-DB MCP server, treat it only as a transport and keep the same private-context and approval boundaries below.
Before accessing an instance, resolve the configured private context. Read
references/private-context.md for the context contract, resolution order,
expected fields, first-configured-pointer fallback behavior, and output rules.
If no valid private context is available, explain what is missing without
guessing an endpoint, searching shell history, inspecting unrelated .env
files, or inventing inventory conventions.
The tiers below define the contract. The bundled helpers implement the read-only tier and a deliberately narrow mutation path for part-lot quantity updates.
DIRECTION.md stop boundaries
to the rendered change set. Re-verify the target and result. The helper's
approval artifact binds one exact plan and remains single-use.Do not improvise request payloads from general memory. Probe the installed instance's OpenAPI contract before relying on version-sensitive endpoints.
infra-ops. For inventory work, resolve private
context without exposing it in public artifacts.uv run scripts/partdb-read.py context-check, then a schema probe before
querying inventory.
For a mutation, generate a plan from a private intent file, render its exact
diff, and check its scope against existing task authority before approval.The bundled mutation helper supports only setting a single existing part lot's quantity. It does not create, delete, move, or attach records. Keep its intent, plan, approval, and receipt files in a private ignored directory.
op, lot_id, and amount; op must be
part-lot-amount-set.uv run scripts/partdb-write.py plan --intent ... --output .... It
validates the installed OpenAPI schema, reads the current amount, and emits a
plan with an exact digest binding an opaque fingerprint of the configured
instance URL as well as the quantities.prior_amount and target_amount to the user. For an
unambiguous change covered by existing task or standing authority, the agent
may run the next step with that exact plan digest. Resolve new scope,
ambiguous inventory intent, or a real stop boundary before continuing,
using the shared authorization rules above.uv run scripts/partdb-write.py approve --plan ... --approve <digest> --output ....uv run scripts/partdb-write.py apply --plan ... --approval ... --apply.
It refuses a changed instance before querying it or obtaining write authority,
reads again, refuses quantity drift, patches only after those checks, reads back to
verify, and records a redacted digest-keyed receipt in the local user's stable
private ledger. Each approval is single-use even if its files are moved or copied;
a failed apply leaves a needs-reconciliation receipt instead of retrying a
possibly completed write. This includes handled context-provider failures
after an approval is reserved.If the instance changes or an older plan lacks its binding, create a new plan, show its diff, and re-check authority before approving its new digest through the same helper. The fingerprint binds the configured URL; it does not detect a replacement server behind the same URL.
The ledger is ~/.local/state/codex-skills/partdb-write on either harness,
independent of the plan directory, harness account, and private-context pointer.
Approvals bind its opaque authority ID. Keep the authority file and all receipts
together; do not delete or fork this consumption history. Apply refuses missing
or mismatched authority before context or write access. If the ledger is lost,
corrupt, or its consumption history is uncertain, preserve any remaining ledger
outside its active location as private reconciliation evidence. Generate and
approve a fresh plan through the same scope check to initialize a new authority;
older approvals remain invalid. Never restore stale consumption history into the
active ledger.
The helper cannot detect a manual rollback of both its authority and receipts.
Plans and approvals from the older formats require fresh planning and approval;
this also applies when moving work to a different ledger or local user.
The private context must declare a separate write-token environment variable
and allow_mutations = true; that only enables this helper's exact-plan gates,
not unreviewed mutations.
Do not commit or copy instance URLs, credentials, supplier accounts, inventory exports, part names, serial numbers, quantities, storage maps, photos, or attachments into public skill files, issues, pull requests, examples, or logs.
When reporting to the user in a private session, minimize sensitive inventory data to the requested task. Redact configuration values and do not expose tokens, authorization headers, or private network details.
Part and attachment creation, location moves, and deletion require their own
schema-driven, idempotent proposal workflows. The read-only helper also
provides context-check, schema-probe, search, and locations commands.
agents/openai.yaml (opens in a new tab)references/private-context.md (opens in a new tab)scripts/partdb-read.py (opens in a new tab)scripts/partdb-write.py (opens in a new tab)scripts/test_partdb_read.py (opens in a new tab)scripts/test_partdb_receipt_failures.py (opens in a new tab)scripts/test_partdb_write.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
27 skills in this plugin
/babysit-prBabysit a GitHub pull request by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks to monitor a PR, watch CI, handle review comments, keep an eye on failures/feedback, or when PR diagnosis, update/rebase/rerun work, safe-to-exit checks, or merge confirmation turns into ongoing CI/review/merge follow-through./directionUse when the Director starts a direction session, asks for a north star, dead reckoning, a daily or weekly direction check, a direction audit, or milestone proposals; when a repository's DIRECTION.md must be created or changed; or when an executing agent holds a reviewer finding that would change an agreed outcome, in either direction, and must escalate it instead of acting. The Director decides, the direction agent drafts and argues with evidence. Not for planning work inside a milestone (github-plan) or for running a reviewer (model-review)./docs-lookupUse when the answer depends on external docs, environment-specific operational context, or facts about the user's own setup, including devices, radios, networks, accounts, or what is installed where. Look up setup facts in the user's docs or reachable systems before asking the user. Includes discovering source-of-truth docs and access paths for private operations such as DNS or Cloudflare records, and finding where a credential, API token, or secret is stored, but not performing infrastructure actions or mutations.Generated from the plugin's indexed repository (cbusillo/codex-skills) — no native marketplace selected
npx claudepluginhub p/cbusillo-shared