Automation Guide · No Code, Just Guidelines

Two Ways to Run
Heaptrace Skills

Local for individuals. CI/CD for teams. Both for full coverage. This page is your starting point — it explains your options and helps you pick the right setup. For deep implementation details, see the linked guides.

100
Skills
2
Setup Paths
3
Phase Rollout
10–60
Min Setup Time
Section 02 · Choose Your Path

Which Setup Do You Need?

Three paths. The right one depends on whether you're working solo, deploying for a team, or building a mature engineering organization that needs both.

Which setup do I need?
Just me
Local Setup
Part 1
Whole team
CI/CD Setup
Part 2
Both — full coverage
Phased Rollout
Part 3
Question Answer Setup
Are you a solo dev or consultant? Yes Local only
Do you need PR-blocking gates? Yes CI/CD required
Do you want personal daily review of your own PRs? Yes Local routines
Are you in a regulated industry (HIPAA, SOC 2)? Yes CI/CD + audit logs
Do you want maximum coverage? Yes Both
Part 1 · Local / Internal Setup
Section 03 · Local Setup

Why Run Locally?

The local path keeps everything on your machine. Your code stays put. Your AI subscription does the work. There is no cloud quota, no team coordination, no centralized configuration — just you and the skills, available the moment you need them.

Local-only is the right starting point for solo developers, consultants working under NDAs, and small teams exploring whether agentic workflows are a fit before committing to broader rollout. Most engineering organizations begin here — not because they have to, but because it's the lowest-friction way to build trust with the tooling. Once your team feels comfortable, expanding to CI/CD becomes a natural next step rather than a leap of faith.
01
Privacy
Code never leaves your machine. No upload, no telemetry, no cloud-side processing. Ideal for regulated codebases and consulting work.
02
Cost
Uses your existing Claude or Cursor subscription. Zero infrastructure to provision. No CI minutes burned on advisory checks.
03
Speed
No CI startup delay. Skills run in seconds, not minutes. The feedback loop stays tight enough to keep you in flow.
04
Flexibility
Configure per developer. Each engineer chooses which routines to run, when, and where to send the output. No team coordination required.
Section 04 · Tooling

Tools You Can Use

Heaptrace Skills run inside any agentic AI runtime that supports custom skills. Here are the four most common environments — pick the one that matches how you already work.

CC
Claude Code CLI
Terminal-based
Best For
Power users, automation, cron-based scheduling
Strength
Scriptable. Runs in any terminal. Integrates with shell pipelines.
Weakness
Command-line interface — not visual.
Pick When
You're comfortable in terminal and want to automate.
CD
Claude Desktop
GUI app
Best For
Visual interaction, conversational workflows
Strength
Clean UI. Easy onboarding. Great for exploration and learning.
Weakness
Less suitable for cron or batch processing.
Pick When
You prefer GUIs and do mostly interactive work.
CR
Cursor IDE
Editor-integrated
Best For
In-editor flow, real-time suggestions
Strength
Skills accessible while you write code. No context switching.
Weakness
Tied to one IDE — switching editors means re-configuring.
Pick When
You live in your editor and want skills as you type.
GH
GitHub Copilot
With custom instructions
Best For
Teams already on Copilot, IDE-integrated
Strength
Works in VS Code, Visual Studio, JetBrains. Minimal new tooling.
Weakness
Customization more limited than Claude Code.
Pick When
Your team already pays for Copilot.
All four runtimes execute the same skill files — Heaptrace Skills are runtime-agnostic by design. The decision is about ergonomics, not capability. Most engineering teams standardize on one runtime per developer, then mix as preferences evolve.
Section 05 · Use Patterns

On-Demand vs Scheduled

There are two ways to use skills locally. Most developers start with on-demand and graduate to scheduled routines once the workflow becomes routine.

Pattern A · On-Demand

Run when you need it

You invoke the skill manually at the moment you want feedback. No scheduling, no automation — just typing the skill name when it makes sense in your flow. This is the simplest entry point and the right starting place for nearly every developer.

  • Before starting a small task — /quick-plan
  • To execute the plan — /quick-work
  • Before committing — /code-standards
  • Before opening a PR — /code-review
  • When stuck on a bug — /find-fix
Pattern B · Scheduled

Run on a routine

A scheduler wakes the runtime at predefined intervals — sleep, wake, run, post results, sleep. Useful for asynchronous review, weekly sweeps, and any work that benefits from a steady cadence rather than human triggering.

  • Every 4 hours — review your open PRs, post a digest
  • 3x per day — check recent commits for quality issues
  • Every Monday — run a security sweep on the codebase
  • Every Sunday night — generate a weekly engineering report
  • Quarterly — produce a compliance evidence package
Section 06 · On-Demand

Skills You'll Run Manually

These are the skills most developers reach for day to day. Each is a single command in your runtime — type the name, hand over the context, get a result. Full skill catalog at index.html.

Planning & Scoping
/quick-plan
Small task plan — scoped, focused, ready to execute.
/feature-plan
Full feature plan with mockups, data flow, and risk assessment.
Implementation
/quick-work
Execute a small plan end-to-end with verification.
/feature-work
Execute a full feature plan with progressive checkpoints.
/find-fix
Debug a specific issue — root cause first, patch second.
Quality Gates
/code-standards
Check your code against project conventions and house style.
/code-review
PR-style review on your changes — same depth as a senior reviewer.
/sec-audit
Quick security check — credentials, injection, common OWASP issues.
Specialized
/explain
Understand unfamiliar code — annotated walkthrough with diagrams.
/smart-commit
Generate a clean, semantic commit message from staged changes.
/release-notes
Generate human-readable release notes from git history.
Section 07 · Scheduled Routines

The 4 Standard Patterns

These are the four routines most teams adopt. All cadences are configurable. All routines post to Google Chat as plain text by default — but Slack, Teams, email, or local file logs are equally supported.

Routine Cadence Skills Used Output
PR Watch Every 4 hours code-review (diff mode) Plain text Chat post — list of new PRs reviewed since last run
Code Quality Pulse 2–3x per day code-standards (DELTA mode) Plain text Chat post — recent quality findings on changed files
Security Sweep Weekly (Mon 6am) secrets-scan, dep-vuln, sec-audit, privacy-review Plain text Chat post — Tier 1+2 security findings summary
Full Code Review Weekly (Sun 6am) code-review, code-standards, tech-debt-audit Plain text Chat post — comprehensive weekly engineering report
[Heaptrace · PR Watch] 2026-04-24 14:00 UTC · acme-platform 3 PRs reviewed since last run (4h ago): PR #4521 — Add Archive button to projects Skill: code-review Findings: 0 critical, 2 medium, 4 low Recommendation: ready for human review Link: github.com/acme/platform/pull/4521 PR #4522 — Fix billing webhook retry Skills: code-review + sec-audit (critical-path) Findings: 1 high, 3 medium Action: needs human review Link: github.com/acme/platform/pull/4522 Next run: 18:00 UTC
Sample plain-text routine output, posted directly to a Google Chat space.
Why plain text and not card-formatted messages? Plain text is readable in any chat client, paste-friendly into incident tickets, searchable in chat history, and survives platform migrations. Card formats break across clients, fragment when forwarded, and obscure the underlying content. We optimize for the format that still works five years from now.
Section 08 · Schedulers

Scheduling on Your Machine

Four ways to wake the runtime on a schedule. Pick by operating system and reliability needs — or skip local scheduling entirely and use a hosted equivalent. This page describes the options at a concept level. For implementation details, see the linked guides.

01
cron — Linux & macOS
The Unix standard. A crontab file lists when each routine runs. Editable from the terminal. Available on every Linux server and Mac out of the box. Lightweight, well-documented, universally supported.
Linux macOS Best for terminal users
02
launchd — macOS (recommended)
Apple's preferred scheduling system on Mac. Uses XML plist files. Much better than cron for laptop users — handles sleep and wake correctly, so a routine won't be skipped because the laptop was closed at the scheduled time.
macOS Best for laptops
03
Task Scheduler — Windows
The built-in Windows scheduler. GUI-based setup, no terminal required. Handles wake-from-sleep, missed runs, and conditional triggers. Best path for Windows-first developers and teams less comfortable with command-line config.
Windows GUI-driven
04
Hosted alternatives
If you'd rather not run scheduled jobs on your laptop: GitHub Actions schedule (free, runs in cloud — covered in Part 2), Cloudflare Workers Cron Triggers (free tier, serverless), or Vercel Cron Jobs (for teams already on Vercel).
Cloud No local setup
When you're ready to set this up, the implementation steps live in our CI/CD Setup Guide (which covers the GitHub Actions schedule path) — or contact us for a white-glove rollout. This page intentionally keeps things at the decision level.
Section 09 · Output

Where Output Goes

Every routine produces a structured report. Where that report lands is your call — we support every common destination, and the routine config is a one-line swap to switch.

G
Google Chat · recommended default
Plain text format (not Card v2 — easier to read in chat history, paste-friendly, survives forwards). Set up via incoming webhook URL in your Chat space. The same webhook works for all four routines.
S
Slack
Plain text via incoming webhook. Same routines work — just swap the webhook URL. No reformatting, no platform-specific output adapters required.
T
Microsoft Teams
Plain text via Teams connector. Slightly different envelope format (Teams uses MessageCard under the hood), but we keep the inner content plain so it's readable everywhere.
E
Email
Daily digest format. Best for less-chatty teams that prefer scheduled inbox summaries over real-time chat noise. Works with any SMTP provider.
F
File logs
No external dependency. Routines write to local log files on disk. Tail, grep, or pipe into your own observability stack. The most private option.
+
Custom destination
Anywhere a webhook can post — Discord, internal API, PagerDuty, Linear, Jira — works with the same routine. Configure once per destination, reuse across routines.
All output formats are plain text by default — readable, searchable, and copy-pastable. We avoid card-format messages because they break across chat platforms, don't paste cleanly into tickets, and lose meaning when the platform inevitably changes its rendering.
Part 2 · External / CI/CD Setup
Section 10 · CI/CD Setup

Why Run in CI/CD?

Local routines protect the developer. CI/CD protects the team. Once your standards exist as workflow files, every PR gets the same treatment — regardless of who opened it, what laptop they're on, or whether they remembered to install anything.

The shift from local to CI/CD is the shift from advice to enforcement. Local skills produce recommendations a developer can choose to act on. CI/CD checks produce gates — bad code physically cannot merge until the issue is addressed. Both have a place; they cover different failure modes. Local catches issues during development. CI/CD catches issues at the merge boundary, where they would otherwise enter the trunk.
01
Consistency
Every PR gets the same checks. Standards don't depend on who reviewed the code or whether the developer ran the local routine.
02
Blocking
Bad code can't merge. Critical findings — exposed secrets, severe vulnerabilities, policy violations — physically gate the merge button.
03
Auditability
Every run is logged. CI history becomes evidence for compliance audits — when checks ran, what they found, who acknowledged the result.
04
Zero local setup
New hires don't install anything. The standards travel with the repository — clone, push, get reviewed by the team's standard automation.
Section 11 · Implementation Reference

What's Already Documented

We won't repeat the implementation guide on this page — it lives in two existing documents that already cover every workflow file, secret, and branch protection rule you'll need.

The CI/CD path is fully documented.

See ci-cd-security.html for the architectural overview — the four-tier severity model, what blocks vs warns, and how the gate decisions are made. See cicd-security-setup.html for the complete implementation guide with all five GitHub Actions workflows, the composite action, the severity matrix, and the bash helper for parsing skill output.

What's covered in the implementation guide:

  • Tier 1 — fast gate, every PR, under 2 minutes (secrets-scan + dep-vuln)
  • Tier 2 — code security, PR to staging (sec-audit, privacy-review, access-audit, audit-log)
  • Tier 3 — infrastructure (cloud-security, infra-harden, network-audit)
  • Tier 4 — compliance frameworks (HIPAA, GDPR, SOC 2, PCI audits)
  • Weekly deep scan with full git history
  • Manual on-demand workflow for ad-hoc audits

What you'll set up:

  • Five YAML workflow files in .github/workflows/
  • Repository secrets — ANTHROPIC_API_KEY, optional Chat webhook
  • Branch protection rules tying status checks to merge eligibility
  • A production environment with manual approval gates

Estimated effort: 1–2 hours for first-time setup. Less if you've stood up GitHub Actions workflows before.

Part 3 · Recommended Path
Section 12 · Comparison

Local vs CI/CD vs Both

A side-by-side at the operational level. If you're still deciding which path to take, this is the table to read carefully — it's the question most engineering leaders ask first.

Aspect Local Setup CI/CD Setup Both (Phased)
Who runs it Individual developer Team-wide automation Both
Cost Your Claude subscription CI minutes (often free tier) Both
Trigger Cron / launchd / on-demand PR push / schedule Both
Output Personal Chat / log Team Chat / PR comments Both channels
Blocking No — advisory only Yes — blocks merge CI blocks; local advises
Setup effort 30 min one-time 1–2 hours one-time 2–3 hours total
Best for Solo work, exploration Team standards, compliance Mature engineering orgs
Privacy Maximum (local only) Standard (CI logs visible) Mixed
Audit trail Personal log Full CI history Both
The honest answer for most teams: start local, add CI/CD when the team grows past five engineers. The two paths are complementary, not competing. CI/CD enforces the floor; local routines raise the ceiling. Mature teams run both because each catches different classes of issue at different points in the workflow.
Section 13 · Phased Rollout

Three Phases, Four Weeks

The rollout pattern most teams converge on. Each phase ships independent value — you can stop after Phase 1 and still get real benefit. The order matters: developers build trust before the gates go up, which means the gates feel like reinforcement rather than imposition.

Phase 1 · Week 1

Individual Adoption

Each developer sets up Claude Code locally. Runs /quick-plan and /code-review on their own work. No team coordination required, no infrastructure changes. The goal is familiarity — developers discover where the skills help and where they don't, on their own terms.

Skills used in Phase 1
quick-plan, quick-work, find-fix, code-standards, code-review
What you ship: zero new infrastructure. Just installed tooling on each developer's machine.
Phase 2 · Weeks 2–3

CI/CD Security Gates

Lead engineer adds the five GitHub Actions workflows. Team standards become enforced automatically — every PR triggers Tier 1 fast gates, PRs to staging trigger Tier 2 code security, infrastructure changes trigger Tier 3, and release branches trigger Tier 4 compliance audits.

Skills wired into CI
Tier 1: secrets-scan, dep-vuln (every PR)
Tier 2: sec-audit, privacy-review, access-audit, audit-log (PR to staging)
Tier 3: cloud-security, infra-harden, network-audit (when infra changes)
Tier 4: hipaa-audit, gdpr-audit, soc2-audit, pci-audit (release branches)
What you ship: 5 workflow files + branch protection rules tying status checks to merge eligibility.
Phase 3 · Week 4 and beyond · Optional

Scheduled Routines

Add cron-based digest routines for teams that want daily and weekly summaries beyond per-PR gating. This is where CI/CD enforcement becomes a continuous engineering pulse — async review, weekly sweeps, and trend visibility for engineering leadership.

Routines added
PR Watch — every 4 hours
Code Quality Pulse — 2–3x per day
Security Sweep — weekly
Full Code Review — weekly
What you ship: cron entries, launchd plists, or hosted scheduler config — no new app code.
Section 14 · Recommendations

By Team Type

The phase progression isn't one-size-fits-all. Here's what we recommend based on team size and operating context — calibrated against what we see working in production environments.

Team Type Recommended Path
Solo developer / freelancer Phase 1 only — local routines, no CI infrastructure required
Small team (2–5 devs) Phase 1 + Phase 2 — local for development, CI for the merge gate
Mid-size team (5–20 devs) All 3 phases — local + CI + scheduled routines for engineering visibility
Enterprise (20+ devs) All 3 phases + per-team routines — separate digests per squad / domain
Regulated industry (HIPAA, GDPR, SOC 2) All 3 phases + Compliance Pack scheduled audits — daily, weekly, and quarterly cadences
Mobile-first team All 3 + mobile-specific routines — mobile-quick-plan in CI, platform-specific verification
Section 15A · Specialized Track

Mobile-Specific Automation

For React Native, Flutter, SwiftUI, or Compose teams. The mobile track follows the same three-phase rollout as the web track — but the skills are platform-aware, and the verification steps include simulator and emulator builds rather than just static checks.

M1
Local mobile skills
mobile-quick-plan runs locally for small mobile tasks — paired with mobile-quick-work for execution. Same flow as the web equivalents, calibrated for mobile context (Expo, native modules, platform parity considerations).
M2
CI mobile skills
mobile-test, mobile-perf, and app-release wire into your release workflow — appropriate for App Store and Play Store submission gates.
M3
Platform verification
iOS simulator builds and Android emulator builds run as part of the CI sequence. Skills produce cross-platform parity reports — flagging behavior differences between iOS and Android before they hit users.
M4
Per-platform routines
Recommended for teams with both iOS and Android engineers — separate scheduled digests per platform so reviewers see only the PRs they own. Reduces noise, sharpens accountability.
Mobile teams typically follow the same three-phase rollout but with mobile-* skill variants. The shape of the rollout is identical; the building blocks are calibrated.
Section 15B · Specialized Track

Compliance Team Routines

For regulated industries — healthcare, finance, government. The compliance track adds scheduled audits aligned to common audit cadences. Output is auditor-ready by default, not a developer log that needs translation later.

Cadence What Runs
Daily secrets-scan deep history scan — catches leaks before they sit overnight in the log stream
Weekly Full Tier 1+2 sweep with HIPAA / GDPR / SOC 2 spot checks on changed files
Monthly Full Tier 1–4 audit with compliance-report evidence package generation
Quarterly incident-plan tabletop exercise prep + access-audit review
Pre-audit (on-demand) Full evidence collection, BAA inventory, control-mapping export — auditor-ready package
Output: the compliance-report skill generates auditor-ready evidence packages. Stored as build artifacts in CI, or as local files in single-developer environments. For more detail on the Compliance Pack itself, see compliance-overview.html.
Section 15C · Reporting

Reporting Cadences

Different audiences need different frequencies. Active developers want real-time feedback; engineering leaders want trends; auditors want quarterly evidence packages. Here's how the cadence ladder typically looks.

Cadence Format Recipients
Real-time PR comment Authors, reviewers
Hourly digest Plain text Chat post Engineering channel
Daily digest Plain text Chat post or email Team leads
Weekly summary Email + Chat Engineering leadership
Monthly report Email + dashboard CTO, Compliance Officer
Quarterly compliance pack PDF / structured docs Auditors, customers
Recommended pairings: per-PR for active development, weekly for trend visibility, monthly for leadership rollups. Most teams over-invest in one cadence and under-invest in another — a balanced ladder beats a comprehensive but rarely-read report every time.
Section 16 · Resources

Where to Go Next

This page is the map. Here are the deeper documents you'll want once you've decided on a path.

Ready to Roll Out?

You've picked your path. The implementation guides cover the rest — workflow files, branch protection, scheduling, and webhook configuration.

Need a white-glove rollout? Contact your Heaptrace partner.