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.runto execute internal Python scripts and standard system utilities. - Evidence: Multiple scripts such as
scripts/state_manager.py,scripts/prewrite_gate.py, andscripts/academic_gate_hook.pyinvoke sub-processes. - Purpose: These operations facilitate version control (via
git), document merging and conversion (viapandoc), and automated validation of manuscript state. - [PERSISTENCE]: The skill registers a persistent hook in the AI agent's environment.
- Evidence:
scripts/install_gate_hook.pymodifies~/.claude/settings.jsonto install aPreToolUsehook. - Purpose: The hook runs
scripts/academic_gate_hook.pyto 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.pyfetches bibliographic metadata fromapi.crossref.org,eutils.ncbi.nlm.nih.gov, andapi.semanticscholar.org. - Evidence:
scripts/env_preflight.pyandreferences/citation-policy.mdprovide user instructions for downloading the Entrez Direct utility fromftp.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.pydefines a regex_INVISIBLE_REcontaining zero-width spaces and invisible control characters. - Analysis: These characters are used as patterns for the
sanitize_fieldfunction, 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.pyutilizesrunpy.run_pathto 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