devops-best-practices
Rules and playbooks for local dev env and delivery chain: Dockerfile, docker-compose.yml, process-compose.yml, Drone `.drone.yml`, Kubernetes Kustomize + Helm kept in parity, and `deploy/README.md` delivery facts. Use when writing, reviewing or planning any of these; when a task adds a database, cache, MQ or runnable process; when backfilling a missing dev env in an existing project; when planning or running a delivery phase (containerize, set up CI, deploy to k8s, release); or when adding a module, port, env var, config key or secret to a project that already has these files — even if no file is named.
- License 许可
- MIT
- 所属仓库
- JinsYin/skills
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- model
- sonnet
- description
- Propose a reorganization of the slides, without removing any content
02 资源文件 34
- 参考文档AGENTS.md30.9 KB
- 参考文档references/delivery.md4.7 KB
- 参考文档references/dev-env.md3.7 KB
- 参考文档rules/_sections.md2.4 KB
- 参考文档rules/ci-anchor-repeated-values.md1.3 KB
- 参考文档rules/ci-build-inside-container.md1.2 KB
- 参考文档rules/ci-explicit-event-scope.md1.4 KB
- 参考文档rules/ci-tag-strategy-single-source.md1.3 KB
- 参考文档rules/compose-healthcheck-start-period.md1.4 KB
- 参考文档rules/compose-optional-behind-profile.md1.2 KB
- 参考文档rules/compose-parameterize-env.md1.3 KB
- 参考文档rules/compose-platform-only-when-no-native.md1.1 KB
- 参考文档rules/deploy-base-overlay-diff-only.md1.2 KB
- 参考文档rules/deploy-config-secret-split.md1.2 KB
- 参考文档rules/deploy-kustomize-helm-parity.md1.9 KB
- 参考文档rules/deploy-no-latest-in-prod.md1.2 KB
- 参考文档rules/deploy-securitycontext-match-image.md1.2 KB
- 参考文档rules/deploy-three-probes.md2.0 KB
- 参考文档rules/image-base-registry-arg.md1.3 KB
- 参考文档rules/image-copy-artifact-exact-name.md1.2 KB
- 参考文档rules/image-entrypoint-exec-form-env.md1.2 KB
- 参考文档rules/image-layer-cache-manifest-first.md1.0 KB
- 参考文档rules/image-multistage-split.md1.3 KB
- 参考文档rules/image-nonroot-explicit-uid.md1.5 KB
- 参考文档rules/image-tz-explicit.md1.1 KB
- 参考文档rules/proc-deps-via-compose-wait.md1.8 KB
- 参考文档rules/proc-guard-before-start.md1.3 KB
- 参考文档rules/proc-no-hardcoded-host-paths.md1.5 KB
- 参考文档rules/proc-oneshot-restart-no.md1.3 KB
- 参考文档rules/secret-ci-from-store-only.md1.2 KB
- 参考文档rules/secret-never-commit-real.md1.1 KB
- 参考文档rules/secret-placeholder-explicit.md1.1 KB
- 脚本scripts/build.sh1.5 KB
- 脚本scripts/k8s-parity.py4.8 KB
03 SKILL.md 正文
Goal
- Given a markdown file
<FILE>with slides about technical material propose how to reorganize the slides without removing any content, but only moving / reorganizing the content
Workflow
- Read the conventions in
.claude/skills/slides.rules.md
Extract Table of Content
- Extract the current table of content of the slides
> extract_toc_from_txt.py -i <FILE> --max_level 5 --mode headers 2>&1 | tee slides.before.txt
Propose Reorganization
-
Propose how to organize the slides in a different flow, separating cohesive chunks with:
- level 1
# ... - level 2 headers
## ... - slides
* ...
- level 1
-
Keep the standalone
* Roadmapslide first and the standalone* Summaryslide last (right before* References, if present): never propose moving either one, per.claude/skills/slides.rules.md## Roadmap Slide/## Summary Slide. Do update* Roadmap's bullets if the reorganization changes the order of the#topics it previews -
E.g.,
# Topic 1 ## Topic 1.1 * Slide 1 ... * Slide 2 ... -
Do not delete any slide, only move slides around, without changing them
Propose Slides to Remove or Merge
- Propose slides whose content is redundant or unclear to be removed
- Propose slides to merge to consolidate or remove redundant content
Wait for User
- Save the entire proposal in
plan-slides.reorganize.mdin the current dir - Save the proposal in the file
plan.slides.after.txtin the same format asplan.slides.before.txt
Perform Reorganization
- Wait for the user to approve the changes
- After the user approves, perform the changes in place reorganizing the slides, but without removing any slide or content
Verification
- [ ] Make sure that the updated slides render correctly, e.g.,
> gen_slides.py -i <FILE> --notes_to_pdf_args="--skip_action open_pdf"
04 同仓库更多 Skills
write-great-skill
Workflow and quality bar for agent skills: draft, polish, compress, verify, ship. Use whenever creating or editing a skill (`SKILL.md`, `references/`, `rules/`), or when project conventions route root `CLAUDE.md`/`AGENTS.md` edits here, even if the user only says “改一下这个 skill”.
write-fspec
Derive the 功能规格说明书 (functional spec) from the product prototype and keep it versioned under products/fspec/: Flyway-style V files plus a merged CURRENT.md. Use when a prototype is finalized, changed or backfilled, when a draft V is confirmed or CURRENT.md lags, or when the user mentions 功能规格, 功能规格说明书 or fspec. Not for the feature spec (.scratch/*/spec.md) or DESIGN.md.
version-release
Cut a SemVer release — bump every module's version in lockstep, promote CHANGELOG.md, commit, tag, push to origin. Args `major|minor|patch|<x.y.z>`; none → level inferred from `[Unreleased]`, confirmed with user. Invoke only on explicit request: the user, another skill, or a project convention asking for a release.
ui-ux-best-practices
UI/UX rules for Chinese-language React/Vue admin consoles and their product/design specs. Use when designing, building, reviewing, or refactoring forms, lists, modals/drawers, destructive actions, copy, formats, or console layout.
spring-boot-best-practices
Spring Boot 3 + Java 21 + MyBatis Plus 项目的编码规范与架构纪律。涵盖分层依赖、国密 SM2/SM3/SM4、MyBatis Plus 实体与主键策略、多方言数据库迁移、R/RList/RPage 响应包装、DTO 职责边界、鉴权框架选型(Spring Security / Sa-Token)与声明式权限校验、命名约定、模块 README 文档要求。在编写、审查或重构 Spring Boot 后端代码时使用——尤其是新增 Controller/Service/Mapper、定义 Entity 或 DTO、写数据库迁移、处理加解密与签名、设计 API 契约、或接入鉴权与权限校验时。
setup-rules
Conduct an interactive interview, then install selected agent conventions, adapters, `skillsw`, and sensitive-file read restrictions into a project; `update` refreshes installed items without prompting. Use when the user asks to set up agent rules, or run `update` after `setup-rules` conventions change (e.g. Skill Workflow sync). Not for reviewing or hand-editing `CLAUDE.local.md`.