openspec-archive-change
Pass
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill design incorporates a pattern where output from the
openspec instructionscommand is treated as "prompt-level behavior contracts" and "operational guidance," which could allow external data to influence the agent's logic. - Ingestion points: The agent executes
openspec instructions archive --change "<name>" --jsonandopenspec instructions specs --change "<name>" --json, then parses the JSON response. - Boundary markers: The skill body contains instructions to keep external fields separate from built-in steps and to report conflicts. However, it explicitly directs the agent to "read and consider" the context and "follow entries" that are applicable, which creates an opening for instructions hidden in the data.
- Capability inventory: The skill possesses capabilities to execute shell commands (
mkdir,mv), read local files (tasks.md), and write to the filesystem via theopenspec-sync-specsworkflow. - Sanitization: The instructions include a check to ensure guidance is "applicable and compatible" and prohibit copying the guidance text verbatim into outputs, though these rely on the agent's interpretation rather than hard code-based sanitization.
- [COMMAND_EXECUTION]: The skill uses the
Bashtool to perform administrative file operations within the workspace. - Evidence: The skill executes
mkdir -pto create archive directories andmvto transfer directories to the archive location. These commands utilize variables likeplanningHome.changesDirandchangeRootderived from tool outputs.
Audit Metadata