docsync-setup
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill extensively uses Bash and Node.js subprocesses to perform setup tasks, file enumeration, and state management.
- Evidence:
SKILL.mdcontains several Bash scripts utilizingfind,sed,grep, andnodeto manage the project environment and install hook assets. - [PERSISTENCE]: The skill establishes project-local persistence by installing Node.js scripts into the
.claude/hooks/directory and registering them in the platform's.claude/settings.jsonfile to run automatically during sessions. - Evidence: The
installandupgrademodes inSKILL.mdcopydocsync-track.mjs,docsync-watch.mjs, anddocsync-gate.mjsto the local project and configure the agent to execute them onPostToolUseandStopevents. - [INDIRECT_PROMPT_INJECTION]: The skill's
syncmode instructs the agent to follow async_proceduredefined in the YAML frontmatter of project documents. This creates a surface where instructions embedded in untrusted documentation could influence agent behavior. - Ingestion points: Frontmatter is read from project
.mdfiles during status checks, tracking, and synchronization (SKILL.md,docsync-gate.mjs). - Boundary markers: The skill relies on standard YAML delimiters (
---) but lacks explicit security boundaries for the prose instructions in thesync_procedurefield. - Capability inventory: The agent possesses file-system access and command-execution capabilities used during the document synchronization process.
- Sanitization: Content within the
sync_procedurefield is passed to the agent without specific sanitization or filtering. - [DYNAMIC_EXECUTION]: The skill dynamically generates and executes Node.js code at runtime to handle the installation and configuration of hooks.
- Evidence: The installation logic in
SKILL.mduses a heredoc pattern (`node - ... <<'NODE'`) to execute a script that performs atomic file writes and merges JSON configuration files.
Audit Metadata