The gt Claude Code Plugin¶
gtis a Claude Code plugin that gives every engineer the same AI skills for working in the grinntec-cloud workspace: reviewing and red-teaming Terraform, scaffolding modules, writing READMEs, ADRs and website pages, and listing the access a project needs. Its skills read the workspace standards rather than copy them, and its guard stops Claude writing an identity, policy or Defender change until that change has been checked against the desired state.
- Engineering Tooling
- Use the gt Plugin: the engineer's guide
- Governance Reporting: the AzGovViz Analyzer, which publishes the desired state
- Lane A and Lane B Delivery Methodology
- AI reference
Status: in place
The plugin, its guard hook and the CHANGELOG-driven release pipeline are live. Every merge that changes a skill ships as a new version, and engineers receive it automatically the next time Claude Code starts.
How it works¶
The source lives in one repo, devops/ai-prompts. The repo is both a plugin marketplace (grinntec, in .claude-plugin/marketplace.json) and the plugin it lists (gt, in .claude-plugin/plugin.json). A plugin namespaces its skills, so each one runs as /gt:<skill>.
| Part | Path | What it does |
|---|---|---|
| Skills | skills/<name>/SKILL.md |
One folder per skill. The description tells Claude when to use it. |
| Project picker | shared/pick-project.md |
Shared steps for choosing a workspace project. Mirrors the proj menu in devops/ps-menu. |
| Guard hook | hooks/hooks.json, hooks/desired-state-guard.ps1 |
Runs before every Claude file edit. Blocks identity, policy and Defender edits until the desired-state check has run. |
| Installer | setup.ps1 |
Adds the marketplace, installs gt, turns on auto-update, and turns on the repo's git hook. |
| Release | CHANGELOG.md, .githooks/pre-commit, .gitlab-ci.yml |
The newest changelog heading sets the version. CI checks it and publishes the release. |
flowchart LR
subgraph src["devops/ai-prompts"]
CL["CHANGELOG.md<br/>newest version"] -->|pre-commit hook| PJ["plugin.json<br/>version"]
SK["skills/*/SKILL.md"]
HK["hooks/<br/>desired-state guard"]
end
PJ -->|"MR: version:check<br/>main: release vX.Y.Z"| GL[("GitLab<br/>main + tags")]
GL -->|"auto-update at<br/>Claude Code start"| WS["Engineer workstation<br/>gt@grinntec"]
CU["claude-user/settings.json<br/>enables gt@grinntec"] --> WS
WS -->|"skills read"| STD["workspace CLAUDE.md<br/>CONTRIBUTING.md"]
WS -->|"gt:desired-state reads<br/>latest release"| DT["azgovviz-analyzer<br/>(Datum desired state)"]
WS -->|"grinntec-website-update<br/>writes pages"| SITE["deployments/websites/grinntec"]
PM["devops/ps-menu<br/>proj.ps1"] -.->|"picker layout copied"| SK
How a change reaches engineers¶
- An engineer changes a skill on a branch and adds a
CHANGELOG.mdentry under[Unreleased]. - Before merging, they move the entries under a new
## [x.y.z]heading and commit. The pre-commit hook copies that number intoplugin.json. - On the merge request, CI's
version:checkfails if the two versions disagree, or ifskills/,hooks/,shared/or.claude-plugin/changed without a bump. - On merge, CI's
releasejob creates tagvx.y.zand a GitLab Release with that changelog section as its notes. - Each workstation's Claude Code checks the marketplace when it starts and installs the new version. Engineers receive a change only when the version goes up.
How the guard works¶
Before every Write, Edit or MultiEdit, Claude Code runs desired-state-guard.ps1. For .tf, .tfvars, .hcl, JSON, YAML, PowerShell, shell and Bicep files, it matches the new content against patterns for three desired-state domains:
| Domain | Example patterns |
|---|---|
| IAM | azurerm_role_assignment, azuread_*, federated identity credentials, New-AzRoleAssignment, client_secret |
| Policy | policy assignments, definitions, exemptions, enforcementMode |
| Security | azurerm_security_center_*, Microsoft.Security/ |
If the edit matches and the gt:desired-state skill hasn't run since the user's last prompt (read from the session transcript), the edit is denied and Claude is told to run the check first. Claude runs it, reports the statement IDs and Datum version, and retries the edit only if nothing breaks or the engineer chooses to go ahead.
Where it fits¶
| Project | Direction | What flows | Source |
|---|---|---|---|
devops/azgovviz-analyzer (Datum) |
uses | gt:desired-state reads the desired-state pages from Datum's latest release tag, falling back to a local clone |
skills/desired-state/SKILL.md |
Workspace CLAUDE.md, CONTRIBUTING.md |
uses | The standards every skill reads before acting | every SKILL.md |
azure-governance-epac, ci-templates, terraform-modules |
uses | Reference files some skills read (EPAC assignments, the OIDC guide, module layout) | individual skills |
devops/ps-menu |
uses (by copy) | The project picker's tree layout copies proj.ps1. The two are kept in step by hand. |
shared/pick-project.md |
Workspace CLAUDE.md |
used by | Tells Claude to run gt:desired-state before planning any identity, policy or Defender change |
CLAUDE.md |
Workspace claude-user/settings.json |
used by | Shared Claude Code settings that enable gt@grinntec from this repo with auto-update |
claude-user/settings.json |
deployments/websites/grinntec |
used by | gt:grinntec-website-update writes its pages |
skills/grinntec-website-update/SKILL.md |
alpine/git, gitlab-org/cli images |
uses | CI version check and release | .gitlab-ci.yml |
Key decisions¶
One versioned plugin, not copied files. Skills used to be linked or copied into each workstation by a sync.ps1 script, with no version number. Since 1.0.0 every engineer runs a released, numbered version, and setup.ps1 removes the old links. A known baseline under change control follows NIST SP 800-53 CM-2 and CM-3.
Skills point at the standards, never copy them. Provider pins, tags, naming and Lane rules live once in the workspace CLAUDE.md and CONTRIBUTING.md. A skill tells the agent to read them. A copied rule would drift the first time the standard changed.
Check before writing, not after. Datum scores the tenant weekly against the desired state. The guard applies the same statements before a change is written, so a break shows up in the conversation instead of next week's scan. This is a security impact analysis before change (NIST SP 800-53 CM-4) applied to the privileged-access and policy rules in MCSB PA and GS.
The guard is advisory. It fails open: if it can't read its input or the transcript, the edit goes ahead with a note to Claude. An engineer can still choose to proceed after a warning. Hard stops belong in CI, where they can't be skipped.
The changelog sets the version. The version is written once, by a person, in CHANGELOG.md (Keep a Changelog, Semantic Versioning). Tooling copies it. A skill renamed or removed is a major version, a new skill or behaviour is minor, and a wording fix is a patch.
No stored tokens, pinned images. The release job signs in with GitLab's short-lived CI_JOB_TOKEN (MCSB IM-8: no stored secrets). Both CI images are pinned by digest (NIST SP 800-53 SR-3).
Security and access¶
- No identity of its own. The plugin has no Azure or Entra identity, so it has no tier or lane. Skills act through the engineer's own Claude Code session, with the engineer's own git,
glaband Azure CLI sign-ins. Whatever the engineer can do, a skill can ask to do. - Workspace rules still apply. Skills read the workspace
CLAUDE.mdfirst, so its Tier 0, Lane and secure-by-default rules bind what they build. - Install over SSH. Workstations add the marketplace from
git@gitlab.com:grinntec-cloud/devops/ai-prompts.git, so only people with read access to the repo can install it. - A merge reaches every workstation. Auto-update installs whatever is released on
main. Merge request review ofmainis the control on what engineers receive. - The guard needs PowerShell 7. Without
pwshthe hook can't run, and edits are not checked.
Limits and open questions¶
- The guard matches text patterns. A change written in a form the patterns don't cover (for example an unusual resource type, or a file type outside the list) isn't checked. The
$Signalslist in the hook must be kept in step with the domains ingt:desired-stateby hand. - The project picker copies
proj.ps1by hand, so the two can drift. - Open question: the repo's merge request approval rules for
mainaren't defined in code, so this page can't say who must approve a skill change.