agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/promote/SKILL.md

promote

Skill2 starsChanged 6 months agoMITView on GitHub

Build a Layer 2 promotion evidence package for the internal Next.js business app template.

  • Reads credentials

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use research and review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only Layer 2 is supported.

    line 17
  2. Very specific:

    If LAYER.md.template exists or intake tokens remain, stop.

    line 27
  3. Distinctive:

    Run read-only checks first and record the command/result in the report.

    line 33
  4. Distinctive:

    Run a focused secret scan over tracked files:

    line 55
  5. Distinctive:

    Treat findings in examples/docs as warnings unless they contain real-looking values.

    line 59
  6. Distinctive:

    Run the project validation commands when dependencies are installed:

    line 67
  7. Distinctive:

    If dependencies are missing, record that validation could not run and list the missing prerequisite.

    line 74
  8. Distinctive:

    Run these review agents and include their summaries in the report:

    line 78
  9. Distinctive:

    Ask each reviewer to focus on Layer 2 promotion readiness for an internal, non-business-critical tool.

    line 84
  10. Very specific:

    Write .claude/state/promotion-l2-report.md.

    line 101
  11. Very specific:

    Do not update LAYER.md to 2.

    line 154
  12. Distinctive:

    Do not create production secrets or Entra registrations.

    line 155
  13. Distinctive:

    Do not deploy the app.

    line 156
  14. Distinctive:

    Do not treat this report as approval.

    line 157
  15. Distinctive:

    Do not proceed for Layer 3.

    line 158

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Promote

Produce an evidence package for moving an internal Next.js business app from Layer 1 to Layer 2. This is not an approval step and must not update LAYER.md to 2; IT does that after sign-off.

Usage

/promote
/promote --layer 2

Only Layer 2 is supported. Layer 3 is a formal project, not a checklist promotion.

Preconditions

The target repo should be an internal Next.js business app created from this framework:

  • LAYER.md exists and has no <<intake:*>> tokens.
  • package.json, prisma/schema.prisma, src/lib/auth, src/lib/blob/client.ts, and src/lib/audit-log/repository.ts exist.
  • docs/deployment-layers.md exists in the provisioned repo, or the source template doc is available from the framework.

If LAYER.md.template exists or intake tokens remain, stop. The repo has not been provisioned correctly.

Process

Phase 1: Mechanical Checks

Run read-only checks first and record the command/result in the report.

Required checks:

  1. Confirm the working tree is clean:
    git status --short
  2. Confirm LAYER.md exists and LAYER.md.template does not:
    test -f LAYER.md && test ! -f LAYER.md.template
  3. Confirm no intake tokens remain in stamped seed files:
    grep -n "<<intake:" LAYER.md README.md CLAUDE.md 2>/dev/null
    The command should produce no output. Documentation files may still mention token names as examples.
  4. Confirm no committed local env files:
    git ls-files | grep -E '(^|/)\.env($|\.|/)' | grep -vE '(^|/)\.env\.example$'
    .env.example is allowed. Any committed .env, .env.local, .env.production, or equivalent is a blocker.
  5. Run a focused secret scan over tracked files:
    git grep -n -E 'sk-proj-|sk-org-|AKIA[0-9A-Z]{16}|-----BEGIN .*KEY-----|client_secret|password' -- .
    Treat findings in examples/docs as warnings unless they contain real-looking values.
  6. Confirm Layer 2-relevant app boundaries exist:
    test -f src/lib/auth/oidc.ts
    test -f src/lib/blob/client.ts
    test -f src/lib/audit-log/repository.ts
    test -f prisma/schema.prisma
  7. Run the project validation commands when dependencies are installed:
    npm run typecheck
    npm run lint
    npm run build
    npm audit --audit-level=high
    If dependencies are missing, record that validation could not run and list the missing prerequisite.

Phase 2: Specialist Reviews

Run these review agents and include their summaries in the report:

  • security-auditor
  • observability-reviewer
  • supply-chain-reviewer

Ask each reviewer to focus on Layer 2 promotion readiness for an internal, non-business-critical tool. High-severity findings are blockers unless risk-accepted by IT in writing.

Phase 3: Manual Evidence

Record these as manual checklist items. Do not mark them passed unless the user provides concrete evidence during the session.

  • Entra app registration exists with redirect URI matching the hosted APP_URL.
  • AUTH_MODE=oidc is configured in the hosted environment.
  • OIDC_ALLOWED_EMAIL_DOMAINS restricts access to the intended division/team.
  • Production secrets live in the hosting platform secret store or Key Vault, not repo files.
  • Hosted Postgres is configured and automated backups are enabled.
  • Production audit log table exists and retention is defined.
  • Application logs reach a central destination.
  • Named owner is confirmed and reachable.

Phase 4: Report

Write .claude/state/promotion-l2-report.md. Create .claude/state/ if needed.

Use this structure:

# Layer 2 Promotion Evidence

Generated: <ISO timestamp>
Repo: <repo name or path>
Commit: <git rev-parse HEAD>
Requested layer: 2
Current layer: <from LAYER.md>
Owner: <from LAYER.md>

## Result

Status: BLOCKED | READY_FOR_IT_REVIEW

## Mechanical Checks

| Check | Result | Evidence |
|---|---|---|
| Clean working tree | PASS/FAIL | <command output summary> |

## Specialist Reviews

### security-auditor
<summary and blockers>

### observability-reviewer
<summary and blockers>

### supply-chain-reviewer
<summary and blockers>

## Manual Evidence Required

| Item | Status | Evidence |
|---|---|---|

## Blockers

- <blocker or "None">

## Notes For IT

- This report is evidence only. It does not approve promotion and did not modify `LAYER.md`.

READY_FOR_IT_REVIEW means the mechanical checks passed and no unresolved high-severity reviewer findings remain. Manual evidence may still need IT verification.

Hard Rules

  • Do not update LAYER.md to 2.
  • Do not create production secrets or Entra registrations.
  • Do not deploy the app.
  • Do not treat this report as approval.
  • Do not proceed for Layer 3; tell the user to open a formal project intake.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.