convention
Pass
Audited by Gen Agent Trust Hub on Aug 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from external GitHub issues and pull requests and writes it directly into files that govern the agent's behavior.
- Ingestion points: Data is retrieved via
gh issue listandgh pr listcommands within themainfunction ofscripts/convention.mjs. - Boundary markers: The generated content is enclosed in
<!-- contribution-convention:START -->and<!-- contribution-convention:END -->markers. While these delineate the block, they do not inherently prevent an LLM from following instructions embedded within that block. - Capability inventory: The script uses
writeFileSyncto modifyCLAUDE.local.mdorAGENTS.local.mdand updates the.gitignorefile. - Sanitization: The script extracts specific metadata (prefixes, headings) but does not escape or sanitize the body text of issues and PRs before writing them to the instruction files.
- [COMMAND_EXECUTION]: The skill relies on executing local system utilities to function.
- It calls
git rev-parse --show-toplevelto locate the repository root. - It uses the GitHub CLI (
gh) to fetch repository metadata, issue lists, and pull request history. All commands are executed viaspawnSyncusing array-based arguments, which mitigates shell injection risks.
Audit Metadata