saving-workspace-context
Warn
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: MEDIUMPERSISTENCEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PERSISTENCE]: The skill is designed to maintain state across agent sessions by writing data to the workspace. Specifically, it instructs the agent to create new skills in
.cursor/skills/or.agents/skills/and new rules in.cursor/rules/. These directories are configuration paths for IDE-integrated agents, and modifying them allows the skill to influence all future agent behavior in that workspace. - [DYNAMIC_EXECUTION]: The skill provides templates and instructions for the agent to generate new executable skills and rules based on conversation history. While the skill advises asking for permission before creating these specific types of files, the automated generation of instructions that are executed by the platform constitutes a dynamic code generation pattern.
- [COMMAND_EXECUTION]: The skill performs automated filesystem operations, including checking for, creating, and writing to various directories and files throughout the workspace (
context/,research/,templates/, etc.). It explicitly instructs the agent to skip user permission for 'small context saves', reducing human oversight of workspace modifications. - [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it ingests untrusted data from the workspace and uses it to drive agent behavior without proper isolation.
- Ingestion points: Reads files from
context/,research/,companies/,docs/,PROJECT.md, and.agents/configuration files (SKILL.md). - Boundary markers: None identified. The skill does not use delimiters or instructions to ignore embedded commands in the processed data.
- Capability inventory: File system write access, directory creation, and the ability to define new agent skills/rules (SKILL.md).
- Sanitization: None identified. External content is appended to context files and processed for positioning or constraints without validation.
Audit Metadata