Secure development playbook

From pi-sloane/claude-plugin · View interactive version

Secure development playbook is an AI agent skill from the GitHub repository pi-sloane/claude-plugin. Get repo-specific Pi secure-development guidance for a stable engineering task, optionally retrieve necessary threat-model context, and record playbook feedback after confirmation.

How to use this skill

Skill file

Use the Pi secure-development playbook

Use this skill when the user wants tenant- or repository-specific secure-development guidance from Pi Security for a concrete engineering task, or wants to record feedback about playbook guidance.

Tools

Development guidance (read-only):

Optional threat-model context (read-only):

State-changing, confirmation required:

Workflow

  1. For development guidance, first make the engineering task stable from the user's request and current repository evidence. If the intended outcome or scope is ambiguous, clarify it before calling Pi.
  2. Once the task is stable, call pi_playbook_task_query exactly once with the concrete task and the repository slug if the user identified one.
  3. Apply guidance that directly covers the task, clearly attributed to Pi.
  4. If coverage is missing or only adjacent, state the gap and continue from the user's instructions and current repository evidence. Do not retry the playbook query, send a rephrased query, or fall back to pi_knowledgebase_query.
  5. Only when threat-model context is genuinely necessary and unavailable in current repository evidence, make at most one pi_knowledgebase_query call using a short non-sentence phrase. Keep this separate from development guidance; do not use it to compensate for missing or adjacent playbook coverage.
  6. If the user reports the guidance is wrong, stale, incomplete, or missing context, offer to record feedback with pi_playbook_comment_create.

Before calling `pi_playbook_comment_create`

  1. Show the user the exact feedback text and any metadata (originalQuery, requestId, slug, playbookSlug) that will be sent.
  2. Explain the effect: Pi will record this feedback against the playbook for the authenticated tenant.
  3. Ask for confirmation and proceed only on an explicit yes in the current turn.
  4. Call the tool once, then report exactly what Pi returned.
  5. If the call fails or times out ambiguously, report that and stop. Do not retry automatically.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.