Improve Library Item.prompt
--- agent: "appsec-library-maintainer" description: "Refactor a specific library file (agent/prompt/skill) to match the repo’s security authoring standards while keeping minimal diffs." --- Goal: Improve one specific library item in this repo with minimal diffs. Inputs: - Target file path: ${input:file_path:Enter the file path (e.g., prompts/check-for-secrets.prompt.md)} - Improvement goal: ${input:goal:What should improve? (e.g., clearer output format, add evidence requirements, reduce ambiguity)} Procedure: 1. Read the target file. 2. Identify the smallest changes that achieve the goal while preserving intent. 3. Ensure it follows the relevant template: - Root prompt: sections + deterministic output format - Skill: frontmatter + procedure + examples - Agent: frontmatter + operating principles + output requirements 4. Add “verify/don’t assume” safeguards: - require citing exact files/lines - do not allow hallucinated libraries/APIs 5. Output the updated file as complete contents. Output: - Bullet list of changes (3–7 bullets) - Updated file in a single fenced `md` code block
when to use it
Community prompt sourced from the open-source GitHub repo Robotti-io/copilot-security-instructions (Apache-2.0). A "Improve Library Item.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
Robotti-io/copilot-security-instructions · Apache-2.0
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions