Use Superflag in CI/CD
Store a user-scopedcli_ token or app-scoped admin_ key in your CI secret
manager. Inject it as SUPERFLAG_TOKEN; do not generate a credentials JSON file
or print the value.
Validate every proposed config
.agents/skills/superflag/ and its
.superflag-skill.json provenance manifest. When the CLI pin changes, run
superflag skill update, review the instruction diff, and commit the package and
skill changes together.
Dry-run before an environment mutation
Promote explicitly
Process status matters
JSON is not a replacement for exit status. A completeddoctor --json can
return a full diagnostic envelope and exit 1 when unhealthy. Conflicts and stale
preconditions exit 6 and should trigger re-export/re-plan, not blind retry.