agentleFS
sametcelikbicaksametcelikbicak/opencode-team/skills/team-release/SKILL.md

team-release

Skill69 starsChanged 19 days agoMITView on GitHub

Version management and deployment methodology. Semver, CHANGELOG, CI/CD, deployment steps, environment variables, rollback plan. The playbook of the devops role.

  • Reads credentials

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

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.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • +10 more from lilangMax

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the changes visible to the user, not "refactor"

    line 50
  2. Distinctive:

    Write the behavior, not the commit hash

    line 51
  3. Distinctive:

    If a tag push already generates the CHANGELOG, do not write it by hand.

    line 57
  4. Very specific:

    After the PR merges, .github/workflows/release-publish.yml publishes to npm, attests provenance and creates the GitHub Release from the …

    line 65
  5. Distinctive:

    Never write the value: Only the name, type, description, requiredness.

    line 113
  6. Very specific:

    Write .env.example: variable names + description, values empty.

    line 120
  7. Distinctive:

    If you are making a change that cannot be rolled back, state this before the deployment and write a backup plan.

    line 132
  8. Distinctive:

    Every log line should carry a request ID, otherwise debugging is impossible.

    line 142

“Common” is measured: kept by at least 6 in 10 of the 16 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

Versioning and Deployment

1. Versioning

Semver: MAJOR.MINOR.PATCH

ChangeVersion
Backward-incompatible API changeMAJOR
New feature, backward compatibleMINOR
Bug fixPATCH

Pre-release: 1.0.0-alpha.1, 1.0.0-rc.1

Determine the version number with its rationale. Do not say "we did everything"; classify what kind of change was made.

2. CHANGELOG

In Keep a Changelog format, in English:

# Changelog

All notable changes to this project are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0] - 2026-10-21

### Added
- Invoice PDF export with configurable template

### Changed
- Dashboard query now uses the composite index on (user_id, created_at)

### Fixed
- Timezone offset applied twice when parsing invoice dates

### Security
- Session cookies now set `SameSite=Lax`

Rules:

  • Write the changes visible to the user, not "refactor"
  • Write the behavior, not the commit hash
  • Breaking changes go under ### BREAKING CHANGES with a migration note
  • Date format YYYY-MM-DD

When the repository already automates the CHANGELOG

If a tag push already generates the CHANGELOG, do not write it by hand. Review the generated release PR instead, then fix wording, missing breaking changes or migration notes there.

This repository is the reference implementation:

  1. Push a v* tag.
  2. .github/workflows/release-prep.yml runs .github/scripts/release-prep.sh <tag>.
  3. The script diffs from the previous tag, groups commits by conventional prefix (feat → Added, fix → Fixed, docs → Documentation, chore/refactor/perf/test/ci/style → Changed, the rest → Other), adds by @author and in [#PR], prepends a ## [<tag>] - date section to CHANGELOG.md, and sets the package.json version.
  4. The workflow commits CHANGELOG.md and package.json to changelog/<tag> and opens a PR.
  5. After the PR merges, .github/workflows/release-publish.yml publishes to npm, attests provenance and creates the GitHub Release from the changelog section.

The devops role still owns the result: check the generated entry for user-visible wording, breaking changes and a migration note. Do not bump the version or edit CHANGELOG.md in a separate commit. If the project has no automation, write the CHANGELOG manually using the rules above.

3. CI/CD

Match the existing CI if there is one. If there is not, propose one, do not install one.

Pipeline steps (the order matters):

  1. Dependency install — deterministic with a lockfile (npm ci)
  2. Lint — fast, before writing code
  3. Type check — tsc --noEmit / mypy
  4. Test — unit + integration
  5. Build — production output
  6. Deploy — only from the main branch, via a tag

Rule: the deploy step does not run automatically on the main branch. It runs via a tag or with manual approval. Publishing by accident is bad.

Secrets are not embedded in CI; provide them as environment secrets from the repo settings.

4. Deployment steps

Sequential and copyable. Each step: what, how, how it is verified.

# 1. Environment preparation
npm ci

# 2. Migration (must be reversible)
npx prisma migrate deploy
# verification: npx prisma migrate status → "up to date"

# 3. Build
npm run build

# 4. Deploy
# (platform command)

# 5. Health check
curl -fsS https://api.example.com/health
# expected: {"status":"ok","version":"1.1.0"}

Migration order: it runs before the code deployment and must be backward compatible (that is, the old code must work with the new schema and the new code with the old schema). Otherwise it produces errors throughout the deployment window.

5. Environment variables

Never write the value. Only the name, type, description, requiredness.

VariableTypeDescriptionRequired
DATABASE_URLstringPostgreSQL connection stringyes
SESSION_SECRETstringSession signing key (32+ bytes)yes

Write .env.example: variable names + description, values empty.

6. Rollback plan

A deployment is not considered complete without this section.

SituationActionTimeData loss
The new version fails the health checkRoll back to the previous version2 minnone
The migration ran, the application is brokenRoll back the migration + the previous version10 minnone (reversible schema)
The migration cannot be rolled back, data is corruptedrestore from backup30 minthe last write

If you are making a change that cannot be rolled back, state this before the deployment and write a backup plan.

7. Monitoring

Minimum:

  • Application error tracking (Sentry or equivalent) — stack trace + version + user context
  • A health check endpoint (DB + critical dependency check)
  • Structured logging (JSON, with a correlation ID)
  • Basic uptime monitoring

Every log line should carry a request ID, otherwise debugging is impossible.

Common mistakes

MistakeThe right way
Writing a secret into the configEnvironment variable
Automatic deployment from the main branchTag + manual approval
Not writing a rollback planMandatory section
Deploying without a health checkA /health endpoint
Running the migration after the deploymentRun it first, keep it backward compatible
Listing commits in the CHANGELOGWrite the behavior
Hand-writing a CHANGELOG when the tag workflow generates itReview the generated release PR

Output format

Markdown: Version and rationale / CHANGELOG (English) / CI/CD definition / Deployment steps / Environment variables / Rollback plan / Monitoring.

Explanations in the user's language (Turkish or English), CHANGELOG and commands in English.

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.