channels-release
Skill1 starsChanged 3 months agoMITView on GitHub
Create and publish verified normal Release Train tickets for AfterShip Feed, AfterShip Affiliates, and Listing/Platform Products services through clime. Use when the user asks to release or deploy one of these domains to staging and/or production. Do not use for hotfix, rollback, or restart tickets.
In this repository9 other files it gives its agents.
- codexSkill
- harnessSkill
- product-video-promptSkill
- reviewSkill
- size-chart-auditSkill
- size-chart-syncSkill
- skill-writerSkill
- variant-swatch-imageSkill
- verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 8 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create a normal release ticket from live CMDB, Release Train, and App Center data.
- Distinctive: line 10
Read references/profiles.md after the requested domain or service is known.
- Distinctive: line 15
Never add production because a tag is a release tag or because a prior ticket included production.
- Very specific: line 17
Do not infer a product from a service name.
- Distinctive: line 18
Never fuzzy-match a service, environment, artifact, product, or checklist.
- Very specific: line 19
Do not claim a service is deployed merely because the Release Train ticket was published.
- Very specific: line 35
If a CLI is missing, outdated, or logged out, stop and tell the user.
- Very specific: line 46
Use the current Git identity only as a proposed co-editor when it is an @aftership.com address and a recent same-product ticket used the …
- Distinctive: line 48
Never invent a JIRA key. A PR or tag without a JIRA key may be associated with a Jira issue only when current Jira search and the release …
- Very specific: line 54
Use the profile product name/ID only when the live App Center CD result returns the same product_name.
- Very specific: line 61
Use CMDB acid as product_id.
- Distinctive: line 82
Every deploy task has exactly one rollback task with the same application and environment.
- Very specific: line 99
Use the profile's preferred exact names only when the live template is reviewed_status=pass, unexpired, and has the expected segment/stage.
- Very specific: line 101
Do not select templates containing 紧急, hotfix, or do not use for a normal release.
- Very specific: line 113
Use clime release-train ck release --show-example as the current payload-shape authority.
- Very specific: line 122
Write two-space JSON to /tmp/rt-ticket-<timestamp>.json, then run the validator using its absolute path from this skill directory:
- Very specific: line 153
Read the ticket back and verify the service/version/environment and production flag.
- Very specific: line 161
Read back the ticket. is_draft=false and status=ready to deploy mean the ticket was published, not that deployment succeeded.
- Distinctive: line 174
Do not retry a mutation with guessed IDs or a different environment.
- Distinctive: line 175
If an interactive command stopped at its confirmation prompt without a ticket ID/success line, it did not prove success.
- Distinctive: line 176
After a successful full resolution, refresh the personal service cache with non-sensitive stable IDs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Channels Release
Create a normal release ticket from live CMDB, Release Train, and App Center data. Preserve the user's exact service, environment, and version scope. Creating a draft, publishing a ticket, and completing an actual deployment are separate outcomes.
Read references/profiles.md after the requested domain or service is known. Use its product and checklist mappings as exact-match hints, not as authority over live data.
Hard boundaries
- This workflow is for
releaseonly. Route hotfix, rollback, and restart requests to the genericrt-create-ticketskill. - Never add production because a tag is a release tag or because a prior ticket included production. Only an explicit user request authorizes a production task.
- A staging-only request must produce only staging deploy and staging rollback tasks. After creation and publication, require
has_production_env=falseon readback. - Do not infer a product from a service name.
prod-af-mcp-serverbelongs toAfterShip Feed, notAfterShip Affiliates. - Never fuzzy-match a service, environment, artifact, product, or checklist. A missing or ambiguous exact match is blocking.
- Do not claim a service is deployed merely because the Release Train ticket was published. Confirm an App Center publish record for the ticket/task and wait for
status=success.
Preflight
Run:
which clime
clime release-train version
clime app-center version
clime release-train auth status --output json
clime app-center auth status -O jsonRequire release-train >= 1.0.3 and app-center >= 1.1.0. Older App Center versions can accept -r but fail artifact queries with ListArtifactsInput.CIName ... required; the working artifact selector is -c <ci-name>.
If a CLI is missing, outdated, or logged out, stop and tell the user. Do not install, replace, update, or log in without their approval. The current official manifest is https://files.am-usercontent.org/AfterShip-CLI/common/plugins.yaml; do not silently reuse obsolete .me/.../common/install.sh sources.
Inputs
Collect only fields that cannot be recovered reliably:
- requested domain or exact service name;
- exact environments and version/tag for each service;
- JIRA issue IDs;
- co-editor emails.
Use the current Git identity only as a proposed co-editor when it is an @aftership.com address and a recent same-product ticket used the same address. Surface the inferred value in the dry-run.
Never invent a JIRA key. A PR or tag without a JIRA key may be associated with a Jira issue only when current Jira search and the release content give one unique, strong match; otherwise ask.
Resolve live data
Product and Jira
Use the profile product name/ID only when the live App Center CD result returns the same product_name. Otherwise resolve exactly:
clime cmdb product list --name '<product-name>' --output json
clime release-train jira summary <ISSUE_ID...> --output jsonUse CMDB acid as product_id. Build jira_issues, reason, prd, and jira_ticket_change_log from the Jira response.
Service, environment, artifact, and rollback
For every service:
clime app-center cd list -n '<service>' -O json
clime app-center ci list -s '<service-or-repo>' -O json
clime app-center env list -a '<service>' -O json
clime app-center artifact list -c '<ci-name>' -i '<version>' -O json
clime app-center publish list -a '<service>' -e '<environment>' -O jsonRequired checks:
- CD name is an exact unique match,
application_id > 0, andis_release_controlled=true. - Environment name and
env_categoryboth equal the requested environment. - Artifact selection uses an exact equality check on
image_tagorgithub_tag; do not trust-ito filter the returned page by itself. - Artifact
status=success, ID is positive, commit is non-empty, and the tag/version is exact. - Rollback uses the newest successful publish record for the same service and environment.
- Every deploy task has exactly one rollback task with the same application and environment.
Artifacts, publish records, checklist templates, and staging/production environment properties are always live data. A .ci-cd.yaml or personal App Center cache may skip stable ID discovery only; it must not decide release control, environment scope, artifact, rollback, or checklist contents.
Checklist selection
Query current templates every time:
clime release-train ct list --product-id=<product_id> --output jsonFor a normal release, require:
- pre-release: at least one
security,qa,po, and the relevantfeand/orbesegment; - post-release: at least one relevant
feand/orbesegment.
Use the profile's preferred exact names only when the live template is reviewed_status=pass, unexpired, and has the expected segment/stage. Copy current todo_name, description, and owners; never copy old ticket todos.
Do not select templates containing 紧急, hotfix, or do not use for a normal release. For mixed FE/BE services, include both relevant pre-checks and both relevant post-checks when available.
qa-hotfix-approval-list is hotfix-only. For this normal release workflow, use:
{"qa_approval":{"approvers":[]}}Also keep approval.approvers=[].
Build and validate the payload
Use clime release-train ck release --show-example as the current payload-shape authority; draft creation accepts the same structure. Populate all values from live results. Set:
release_type=release;name=<product_name> - release - <YYYYMMDD>;has_tasks=true;is_duplicated=false;- deploy tasks'
images[]from the target artifact; - rollback tasks'
images[]from the latest same-environment successful publish.
Write two-space JSON to /tmp/rt-ticket-<timestamp>.json, then run the validator using its absolute path from this skill directory:
python3 <skill-dir>/scripts/validate_ticket.py /tmp/rt-ticket-<timestamp>.json --allowed-env stagingPass one --allowed-env flag per explicitly requested environment. Never add production to this command unless the user explicitly requested production.
Confirmation and execution
Before creating, show:
- product, ticket type/name, Jira, co-editors;
- exact service/environment/version/artifact/commit;
- exact rollback service/environment/version;
- checklist names and QA approval;
- whether any production task exists;
- the full JSON path and exact create command.
Accept only yes, y, 确认, 确定, ok, or 执行. Then run in a TTY because the CLI has its own Confirm? [y/N] prompt:
clime release-train ck create --from-file /tmp/rt-ticket-<timestamp>.json --output jsonSend y only after the user's explicit confirmation. After a successful creation, always return the ticket ID and this clickable canonical App Center URL, even when the CLI response has an empty jira_ticket_url:
https://app.automizely.org/v2/release-train/tickets/detail?id=<ticket_id>Read the ticket back and verify the service/version/environment and production flag. Include the same URL again after a later publish result.
Creating a draft does not authorize publishing it. Ask separately. After an explicit publish confirmation, run in a TTY and answer the CLI confirmation:
clime release-train ck publish --product-id <product_id> --ticket-id <ticket_id> --output jsonRead back the ticket. is_draft=false and status=ready to deploy mean the ticket was published, not that deployment succeeded. Check App Center:
clime app-center publish list -a '<service>' -e '<environment>' -O jsonReport separately: ticket published, deployment record created, deployment in progress, or deployment succeeded.
In the verified release-train 1.0.6 CLI, ck publish submits the ticket but does not expose a command that starts an App Center deployment. If the ticket is ready to deploy and no matching App Center publish record exists, stop and report that boundary. Only operate the Release Train/App Center UI when the user explicitly asks to continue the actual deployment.
Failure handling
- Preserve complete CLI error text and the exit code.
- Do not retry a mutation with guessed IDs or a different environment.
- If an interactive command stopped at its confirmation prompt without a ticket ID/success line, it did not prove success; rerun in a TTY only under the existing user confirmation.
- After a successful full resolution, refresh the personal service cache with non-sensitive stable IDs. Never cache artifacts, publish records, checklist data, secrets, or credentials.
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
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.

