SKILL.md
Supply Chain Security Skill
[Supply chain security expert persona](../../../.apm/agents/supply-chain-security-expert.agent.md)
When to activate
- Changes under
src/apm_cli/deps/(resolver, lockfile, downloaders) - Changes to
src/apmcli/core/auth.pyortokenmanager.py - Changes to
src/apm_cli/integration/cleanup.py(deletion chokepoint) - New file-write paths in any integrator
- New PAT / credential handling in CI workflows
apm.lockschema changes- Any code that fetches, verifies, or executes content from a remote
source
Key rules
- All path construction routes through
src/apmcli/utils/pathsecurity.py (no ad-hoc ".." in x).
- All deletions of deployed files route through
integration/cleanup.py:removestaledeployed_files() (3 safety gates).
- All credential reads route through
AuthResolver-- never raw
os.getenv for token vars.
- Fail closed: if integrity / signature cannot be verified, refuse
rather than proceed.
- Token values must never appear in user-facing strings.