general-sci-writing

Pass

Audited by Gen Agent Trust Hub on Nov 16, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPERSISTENCEOBFUSCATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to execute internal Python scripts and standard system utilities.
  • Evidence: Multiple scripts such as scripts/state_manager.py, scripts/prewrite_gate.py, and scripts/academic_gate_hook.py invoke sub-processes.
  • Purpose: These operations facilitate version control (via git), document merging and conversion (via pandoc), and automated validation of manuscript state.
  • [PERSISTENCE]: The skill registers a persistent hook in the AI agent's environment.
  • Evidence: scripts/install_gate_hook.py modifies ~/.claude/settings.json to install a PreToolUse hook.
  • Purpose: The hook runs scripts/academic_gate_hook.py to intercept file writing operations, ensuring that the AI agent does not skip required scientific validation or user sign-off steps. The mechanism is transparently documented and serves a functional role in enforcing the academic workflow.
  • [EXTERNAL_DOWNLOADS]: The skill references external URLs for scientific data and tools.
  • Evidence: scripts/citation_guard_core.py fetches bibliographic metadata from api.crossref.org, eutils.ncbi.nlm.nih.gov, and api.semanticscholar.org.
  • Evidence: scripts/env_preflight.py and references/citation-policy.md provide user instructions for downloading the Entrez Direct utility from ftp.ncbi.nlm.nih.gov.
  • Analysis: All identified domains belong to well-known scientific services or standard technology providers. No automated execution of remote code was detected; the NCBI installation command is provided as a hint for the user.
  • [OBFUSCATION]: Defensive use of hidden Unicode characters was identified.
  • Evidence: scripts/context_guard_core.py defines a regex _INVISIBLE_RE containing zero-width spaces and invisible control characters.
  • Analysis: These characters are used as patterns for the sanitize_field function, which strips them from processed text. This is a security feature designed to clean inputs and prevent steganographic prompt injection attacks.
  • [DYNAMIC_EXECUTION]: The skill uses dynamic loading for internal script management.
  • Evidence: scripts/academic_gate_hook.py utilizes runpy.run_path to execute a local deployment of its core logic.
  • Purpose: This ensures that the platform hook consistently uses a stable deployment copy of the gatekeeper script regardless of where the skill itself is installed.
  • [INDIRECT_PROMPT_INJECTION]: The skill is exposed to external data that could contain malicious instructions, such as literature abstracts.
  • Analysis: This risk is effectively mitigated through multiple architectural layers, including instruction isolation in sub-agent prompts (explicitly instructing sub-agents to treat data as data), sanitization of tool outputs, and the use of independent agent contexts for validation ('Blind Review').
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 16, 2026, 12:35 AM