python-project-best-practice
Pass
Audited by Gen Agent Trust Hub on Aug 28, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill scripts (
new-python-project.py,audit-python-project.py, and the generatedsync_agent_docs.py) use the Pythonsubprocessmodule to execute local system commands. These commands are limited to project-related operations such as initializing a Git repository, listing tracked files, and running the generated CLI with a--helpflag for documentation purposes. These are safe, functional uses of command execution. - [EXTERNAL_DOWNLOADS]: Several scripts utilize the PEP 723 inline script metadata to declare dependencies (e.g.,
tyro,loguru,pydantic-settings). These dependencies are automatically managed and downloaded by theuvtool from the standard PyPI registry. These are well-known, safe packages. - [DATA_EXPOSURE]: The skill explicitly includes best practices for preventing data exposure. The
audit-python-project.pyscript contains a check to detect if.envfiles (which typically contain secrets) are being tracked by Git. Furthermore, the logging configuration in_log.py.tmplexplicitly setsdiagnose=Falseto prevent the accidental leakage of local variables or credentials in error tracebacks. - [INDIRECT_PROMPT_INJECTION]: The
audit-python-project.pyscript processes external project files (likepyproject.toml). The logic is restricted to parsing structured data (TOML) and applying regex patterns to verify configuration. It does not execute instructions found within the audited data, providing a safe boundary between processed content and the agent's logic.
Audit Metadata