When to Use This Skill
- A HubSpot hook or script is writing generated artifacts (reports, exports, migration files) and the output path must be validated before writing
- Enforcing that no generated file is written outside of approved output directories (
output/, reports/, cache/, logs/)
- Reviewing a hook that produces artifacts to confirm it respects the client-centric org folder structure (
orgs/{org}/platforms/hubspot/{portal}/)
- Adding a non-blocking guidance pattern when an artifact is written to a tolerated-but-non-canonical path
- Auditing a plugin release to confirm no script writes to
scripts/, hooks/, agents/, or other source-controlled directories
Not for: Tempfile lifecycle (use hubspot-hook-subprocess-and-tempfile-safety), CMS publish paths, or Salesforce export paths.
Artifact Classification and Allowed Paths