Auditing Workflow Conventions 标志

Auditing Workflow Conventions

组织
bitwarden
auditing-workflow-conventions

Bitwarden GitHub Actions 命名规范参考,涵盖工作流 lint 工具(bwwl)未强制执行的规则。包含三项规范:作业 ID(kebab-case)、步骤名称(Sentence case 祈使句)和工作流文件名(kebab-case.yml,可复用工作流使用 `_` 前缀);另提供建议采用的步骤名称标准词汇表,以及重命名作业 ID 和文件名时的引用扫描流程。审计或编写工作流时,若遇到“作业 ID 应使用什么大小写”“这个可复用工作流应该命名为 build.yml 还是 _build.yml”或“检查这些工作流的命名是否一致”等问题,请使用此技能。请结合 bitwarden-workflow-linter-rules 阅读;后者是 lint 规则的权威依据,此技能仅涵盖未纳入 lint 检查的部分。

Add to TypingMind

概览

发布者bitwarden
代码仓库ai-plugins
技能名称auditing-workflow-conventions
星标数
149
复刻数
19
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 bitwarden 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Auditing Workflow Conventions AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bitwarden/ai-plugins/tree/main/plugins/bitwarden-devops-engineer/skills/auditing-workflow-conventions
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bitwarden/ai-plugins.git /tmp/ai-plugins
mkdir -p .claude/skills
cp -r /tmp/ai-plugins/plugins/bitwarden-devops-engineer/skills/auditing-workflow-conventions .claude/skills/auditing-workflow-conventions
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Auditing Workflow Conventions,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Auditing Workflow Conventions。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Auditing Workflow Conventions 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Ownership

This skill covers only what bwwl cannot check. For anything the linter enforces, invoke Skill(bitwarden-devops-engineer:bitwarden-workflow-linter-rules) — that skill is the source of truth for all bwwl rules, including their triggers and fix procedures. Do not report a finding here that duplicates a linter rule.

Naming categoryOwner
Job IDsThis skill
Step name casingThis skill
Workflow file namesThis skill
Workflow and job display name:bitwarden-workflow-linter-rules — name_capitalized, name_exists
Outputsbitwarden-workflow-linter-rules — underscore_outputs
Job-level env varsbitwarden-workflow-linter-rules — job_environment_prefix
Inputs, bash variables, artifact namesNo standard. Do not invent one — flag the gap instead.

name_capitalized checks only that the first character is capitalized. Get Package Version passes the linter and still deviates from the Sentence case standard below. The two are complementary.

Standards

These three IDs are defined by this skill, not by bwwl. Label them as convention findings, never as linter findings.

job-id-kebab-case

  • Applies to: every key under jobs:.
  • Standard: kebab-case.
  • Correct: build, test, lint, publish, upload, build-artifacts, deploy-service, check-permissions, calculate-version.
  • Deviates: bump_version, cut_branch, deployService, DeployService, BUILD_ARTIFACTS.
  • Flag when: a job ID uses snake_case, camelCase, PascalCase, or UPPER_SNAKE. Single-word IDs are compliant and are never a finding.

A job ID is an identifier, not a label. Before proposing a rename, resolve every reference:

  1. needs: in the same file, in both scalar and list form.
  2. ${{ needs.<job-id>.* }} expressions anywhere in the file.
  3. jobs.<job-id>.outputs at the workflow level of a reusable workflow.

Check-run names derive from a job's name:, not its ID, so a job-ID rename does not affect required status checks — unless the job has no name:, in which case the ID becomes the check name and a rename can break a ruleset that requires it. name_exists already flags a job with no name:; if you encounter one, fix that first and rename second.

step-name-sentence-case

  • Applies to: every name: under steps:.
  • Standard: Sentence case with a leading imperative verb — capitalize the first word plus proper nouns and acronyms only. Proper nouns and acronyms keep their own casing: Azure, Docker, Node, .NET, SDK, RC, MSSQL.
  • Correct: Check out repo, Set up .NET, Print environment, Log in to Azure, Generate Docker image tag, Install Node dependencies, Run tests, Push changes, Upload SDK artifacts.
  • Deviates: Delete Release Branch, Get Package Version, Build & Package Binaries, Upload SDK Artifacts, Dependency install.
  • Flag when: a step name uses Title Case, ALL CAPS, or drops the leading imperative verb.

Step names are display-only — they are not addressable from expressions, since steps.<id> resolves the step's id:. Changing one is safe and needs no reference sweep. This is the only standard here an agent may apply directly during an edit.

workflow-file-naming

  • Applies to: every file in .github/workflows/.
  • Standard: kebab-case.yml, with a _ prefix if and only if the workflow is exclusively reusable. The extension is always .yml, never .yaml. The prefix and the casing are independent — _deploy_service.yml is correctly prefixed and incorrectly cased; the compliant form is _deploy-service.yml.
  • Correct: build-app.yml, scan-dependencies.yml, _version.yml, _deploy-service.yml.
  • Deviates: build_only.yml, API_tests.yml, Integration_Tests.yml, deploy-service.yaml, _deploy_service.yml.
  • Flag when: the name is not kebab-case, the extension is .yaml, an exclusively reusable workflow lacks the _ prefix, or a _-prefixed file is not exclusively reusable.

Exclusively reusable means the on: block declares nothing outside workflow_call and workflow_dispatch. workflow_dispatch is a manual testing and operations escape hatch, not a standalone entry point, so it does not disqualify the prefix.

Any other trigger — push, pull_request, pull_request_target, schedule, release, workflow_run, repository_dispatch — makes the workflow dual-purpose: it both runs on its own and is callable by others. Dual-purpose workflows take no prefix. This is a deliberate and common design, not a deviation. Presence of workflow_call alone never justifies a prefix finding; check the full trigger set first.

on: blockPrefix
workflow_callRequired
workflow_call + workflow_dispatchRequired
workflow_call + any auto-triggerNone — dual-purpose
No workflow_callNone

Renaming a workflow file is destructive. The filename is the workflow's public identifier — it addresses the workflow from outside the repo, and every external reference breaks silently on rename. Never rename one as part of an audit or an unrelated edit. Report it and let the repo owner schedule it.

If a rename is explicitly requested, establish the known reference set first, then use git mv:

  1. In-repo callers — grep the repo for the filename. Catches uses: ./.github/workflows/<file> and any local script that names it.
  2. Org-wide references — gh search code "<file>" --owner bitwarden. Catches uses: bitwarden/<repo>/.github/workflows/<file>@<ref> in other repos plus any script or tooling that names the file. A local grep will not find these.

This establishes a floor, not a ceiling. Nothing outside the org's indexed code is discoverable: automation in other systems, runbook and documentation links, and anything invoking the workflow by filename through the dispatch API. Report what the two searches found and state plainly that the set may be incomplete — the residual unknown is exactly why the rename belongs to the repo owner and not to an audit.

Run history is keyed to the file path and always detaches on rename. Prior runs remain but no longer group under the renamed workflow. This is unavoidable — surface it, do not try to preserve it.

Advisory: Canonical Step Names

Preferred wording, not a standard. Consistent phrasing makes steps greppable across repos, but a step name outside this table is never a finding — most step names are legitimately unique to their workflow.

ActionCanonical formAlso seen
Check out the repositoryCheck out repoCheckout repo, Checkout code, Checkout Branch, Check out repository, Checkout
Log in to AzureLog in to AzureLogin to Azure, Azure Login
Log out from AzureLog out from Azure—
Install a toolchainSet up {tool} — two words, matching actions/setup-*Setup {tool}
Retrieve secrets from AKVRetrieve secretsGet secrets, Setup secrets
Print the environmentPrint environmentPrint Environment

When a step name both deviates from Sentence case and appears in this table (Azure Login), the casing is the finding and the canonical form is the suggested fix.

Applying These Standards

  • A deviation is a flag, not a verdict. These standards describe the target state; they do not authorize a rename. Real workflows carry deliberate exceptions — a job ID matched by external tooling, a filename referenced by a system outside this repo, a step name that reads better than the canonical phrase. Surface the deviation with what a compliant form would be, and let the owner decide. Do not treat silence as consent.
  • Only step names are safe to change in place. Job IDs and filenames both require a reference sweep first. Never fold either rename into an unrelated change.
  • This skill does not edit. Its allowed-tools is read-only — enough to inspect workflows and run the org-wide reference sweep, nothing more.
  • Renames are all-or-nothing. A partially applied rename is worse than the original deviation — it produces a broken workflow instead of an inconsistent one. If the full reference set cannot be resolved, do not start.
  • Do not double-report. If an item is already covered by name_capitalized, underscore_outputs, or job_environment_prefix, the finding belongs to the linter. See the ownership table.
  • Flag gaps honestly. Inputs, bash variable casing, and artifact names have no enforced standard. Say so; do not assert a convention this skill does not define.

常见问题

Auditing Workflow Conventions AI 技能有什么作用?

Bitwarden GitHub Actions 命名规范参考,涵盖工作流 lint 工具(bwwl)未强制执行的规则。包含三项规范:作业 ID(kebab-case)、步骤名称(Sentence case 祈使句)和工作流文件名(kebab-case.yml,可复用工作流使用 `_` 前缀);另提供建议采用的步骤名称标准词汇表,以及重命名作业 ID 和文件名时的引用扫描流程。审计或编写工作流时,若遇到“作业 ID 应使用什么大小写”“这个可复用工作流应该命名为 build.yml 还是 _build.yml”或“检查这些工作流的命名是否一致”等问题,请使用此技能。请结合 bitwarden-workflow-linter-rules 阅读;后者是 lint 规则的权威依据,此技能仅涵盖未纳入 lint 检查的部分。

为什么在 TypingMind 中使用 Auditing Workflow Conventions?

因为您只需安装一次,就能搭配任何模型使用。Auditing Workflow Conventions 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Auditing Workflow Conventions?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bitwarden/ai-plugins/tree/main/plugins/bitwarden-devops-engineer/skills/auditing-workflow-conventions。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Auditing Workflow Conventions?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Auditing Workflow Conventions 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Auditing Workflow Conventions 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Auditing Workflow Conventions AI 技能免费吗?

bitwarden 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇