/octo-claude-skills:octo-commitfrom OctoMesh Skills
Structured commit workflow for OctoMesh repos: scans changes, links Azure DevOps work items (Bug/Task), builds AB# commit messages, runs build/test/lint, and opens PRs with explicit user approval.
Ships in OctoMesh Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Structured workflow for committing finished work across OctoMesh repositories with Azure DevOps work item linking, verification, and optional PR creation.
Never push or create a PR without explicit user approval given in the CURRENT session. This is a firm convention from the repo owner.
git push / gh pr create / az repos pr create.octo-claude-pm installed, its agent-operating-rules decide when an agent may push its own story branch and open the PR without asking (§2.2); everything they do not allow still needs the user's go in the current session.For questions and confirmations in this workflow, use AskUserQuestion in Claude Code. In Codex, use its user interaction tool when available, or ask directly in the conversation and wait for the user's response. Use the same approval checkpoint before any push or PR creation that requires approval.
When the PM plugin (octo-claude-pm in Claude Code, octo-pm in Codex) is installed, its agent-operating-rules §2 are the process rules and this skill does not restate them. Follow them for:
octo-documentation and octo-claude-skills: push the story branch without a PR; the daily docs batch opens the one PR per repository and sets the plugin version (§2.1). Story branches in these two repositories and in octo-claude-pm (which is not batched) leave the plugin version alone and add CHANGELOG lines under ## [Unreleased] (§2.1).main happen only as the rules decide (§2.5, §2.5a); this skill never offers a push to main as a strategy.backlog-conventions §2, §12).The steps below hold with and without the plugin; where they differ, they say so. Without octo-claude-pm they describe a generic branch-and-PR flow.
AB#<WorkItemId> <Type>: <Description>
The same format applies to commit messages and PR titles. <Type> is exactly one of Fix, New, Chore, Refactor, Test, Docs — CodeRabbit's title check (org-wide config in meshmakers/coderabbit) flags any other word (Change, Feat, Update) or a missing type. Automated commits (release manifests, docs-harvest bots, dependabot) and merge commits are exempt. Source: meshmaker Development Guidelines.
| Type | Use for | Example |
|---|---|---|
New | New functionality (User Story, legacy Issue, Task) | AB#4521 New: Add pipeline validation endpoint |
Fix | Correction of wrong behaviour (Bug, or a Task that corrects something) | AB#4493 Fix: Resolve null reference in CK compilation |
Refactor | Restructuring without behaviour change | AB#1234 Refactor: Extract the catalog resolver |
Test | Tests only | AB#1234 Test: Cover the empty-seed case |
Docs | Documentation only (READMEs, CLAUDE.md, skills, guides) | AB#1234 Docs: Describe the title convention |
Chore | Maintenance: dependency or version bumps, build/CI configuration, tooling | AB#1234 Chore: Bump the pipeline template pin |
New and Fix cover most commits. Choose the type from what the change does; the work item type is only a hint (Bug → usually Fix, User Story/Task → usually New). Confirm with the user when the change does not fit one type clearly.
Description: imperative mood, concise (e.g., "Add validation" not "Added validation").
CI in the OctoMesh repos triggers on dev/*, test/*, and main (see each repo's azure-pipelines.yml). A feat/* branch matches no trigger — pushes build nothing; CI runs once a PR is opened. See also the meshmaker Development Guidelines.
| Workflow | Pattern | Example | Build on push? |
|---|---|---|---|
| Feature branch (default) | feat/<username>/<short_meaningful_description> | feat/reimar/implement-skill | No — only on PR |
| Long-running feature branch | dev/AB#<wi-id>_<short_meaningful_description> | dev/AB#1234_implement-skill | Yes — every push |
With octo-claude-pm installed, its §2.1 names the branch (<user>/AB#<id>_<desc>) and decides when stories share one. Without it, default to the feat pattern unless the user explicitly wants a CI build on every push (then use the long-running dev/... pattern). Derive <username> from git config user.name (first name, lowercase). Derive <short_meaningful_description> from the work item title or change context (kebab-case, no spaces). The AB# work-item link lives in the commit message and PR title, not in the branch name.
digraph commit_flow {
rankdir=TB;
node [shape=box];
scan [label="1. Scan repos for changes"];
context [label="2. Understand change context"];
claudemd [label="3. Read CLAUDE.md per repo"];
workitem [label="4. Find or create work item"];
strategy [label="5. Choose commit strategy"];
verify [label="6. Verify completion"];
approve [label="7. REVIEW CHECKPOINT: get explicit approval"];
execute [label="8. Commit and push"];
pr [label="9. Create PR"];
review [label="10. Review; developer merges"];
scan -> context -> claudemd -> workitem -> strategy -> verify -> approve -> execute;
execute -> pr [label="if feature branch"];
pr -> review;
}
Find the monorepo root (directory containing octo-tools/) by walking up from the current working directory. Then scan every git repo for uncommitted changes:
# From the monorepo root
for dir in */; do
if [ -d "$dir/.git" ]; then
changes=$(git -C "$dir" status --porcelain 2>/dev/null)
if [ -n "$changes" ]; then
echo "=== $dir ==="
echo "$changes"
fi
fi
done
Report ALL repos with changes. Do not skip any. Also check for unpushed commits:
git -C "$dir" log --oneline @{upstream}..HEAD 2>/dev/null
Gather context from (priority order):
git diff and git diff --staged in each changed repoIf context is unclear, ask the user:
"I found changes in [repos]. Can you briefly describe what you worked on?"
For every repo with pending changes:
<repo>/CLAUDE.md if it existsDebugL for OctoMesh .NET repos)IMPORTANT: Follow repo-specific conventions from CLAUDE.md. They override defaults.
Azure DevOps context: Organization meshmakers, Project OctoMesh.
Resolution order:
dev/AB#1234_... branch carries the work-item id; default feat/... branches don't — infer from the description)az boards query \
--wiql "SELECT [System.Id], [System.Title], [System.WorkItemType], [System.State] \
FROM WorkItems \
WHERE [System.TeamProject] = 'OctoMesh' \
AND [System.Title] CONTAINS '<keyword>' \
AND [System.State] <> 'Closed' \
ORDER BY [System.ChangedDate] DESC" \
--org https://dev.azure.com/meshmakers
CRITICAL: The WIQL command is az boards query — there is no az boards work-item query subcommand (az boards work-item only has create/delete/show/update).
Backlog hierarchy (since 2026-10-09): Epic → Feature → User Story / Bug → Task. Commits reference a requirement-level item — a User Story, Bug or Task — never an Epic or a Feature (those are planning items for humans). The Issue type is legacy: commits may still reference an existing open Issue, but never create a new Issue.
If the search only finds a matching Epic or Feature, do not commit against it: get a User Story under the matching Feature as described below (or ask which Feature, if only the Epic matches).
Present matching work items to the user if multiple matches were found.
If no matching work item exists:
octo-claude-pm installed, an agent does not create it: it asks the Product Owner agent of the software part for the story (backlog-conventions §2, §12) and waits for its ID. Without the plugin, the user creates the story under the right Feature, with acceptance criteria.Sustain Q<n>/<year> – <Team>. A Task's parent is the User Story it belongs to.OctoMesh. Only customer-project, sales or bizops items may use
their team's iterations.# Open Features to choose a parent from (add a CONTAINS filter on the title to narrow down)
az boards query \
--wiql "SELECT [System.Id], [System.Title], [System.AreaPath] FROM WorkItems \
WHERE [System.TeamProject] = 'OctoMesh' AND [System.WorkItemType] = 'Feature' \
AND [System.State] NOT IN ('Closed', 'Removed') ORDER BY [System.Title]" \
--org https://dev.azure.com/meshmakers
OctoMesh Azure DevOps teams (use the exact names):
Core Platform Team, Studio UX Team, Platform Ops Team, Apps Team, Energy Solution Team, AI Platform TeamProduct Team (portfolio view over all Product Team areas), Solutions Team (plural), CustomerProjects Team, Sales Team, BizOps Team# List available iterations for a team (non-product teams only)
az boards iteration team list \
--team "Solutions Team" \
--org https://dev.azure.com/meshmakers \
--project OctoMesh
# List available areas for a team
az boards area team list \
--team "Solutions Team" \
--org https://dev.azure.com/meshmakers \
--project OctoMesh
Create the Bug and link it to its parent (Mutating — confirm with user first):
az boards work-item create \
--type "Bug" \
--title "<What is wrong, e.g. Tenant list shows deleted tenants>" \
--area "<AreaPath of the parent Feature>" \
--iteration "OctoMesh" \
--fields "Microsoft.VSTS.TCM.ReproSteps=<steps, expected, actual>" \
--org https://dev.azure.com/meshmakers \
--project OctoMesh
az boards work-item relation add \
--id <NewWorkItemId> \
--relation-type parent \
--target-id <ParentFeatureId> \
--org https://dev.azure.com/meshmakers
Microsoft.VSTS.TCM.ReproSteps (via --fields), not --description — System.Description is not the visible field on Bugs.--type "Task" with --description; its parent (--target-id) is the User Story.Every change goes through a branch and a PR; this skill offers no direct push to main (the exceptions are decided by octo-claude-pm §2.5/§2.5a, not here). Branch from a freshly fetched main, named as in Branch Naming above:
git -C <repo> fetch origin
git -C <repo> log --oneline origin/main..HEAD # commits of the starting branch that are not on main
If that list is empty, branch from origin/main. Uncommitted changes come along, unless git refuses because a changed file differs between HEAD and origin/main; then use the rebase path below.
git -C <repo> checkout --no-track -b "<branch>" origin/main
If it lists commits that belong to this work (on a branch that was already pushed, the list also holds pushed commits; judge each one), branch from the current HEAD instead and move them onto origin/main, so they are part of the PR. --autostash puts uncommitted changes aside for the rebase and back afterwards:
git -C <repo> checkout --no-track -b "<branch>" HEAD
git -C <repo> rebase --autostash origin/main
Commits in that list that do not belong to this work stay on the starting branch: branch from origin/main and git cherry-pick only the ones that do; with uncommitted changes, put them aside with a named stash first (git stash push -m "<branch>: pending work", then git stash pop after the cherry-pick).
On a conflict, stop with git rebase --abort (or git cherry-pick --abort) and ask the user. The starting branch keeps its commits; resetting it (for example a local main after the squash merge) needs the user's go, with octo-claude-pm its §2.9.
Before committing, verify the work is ready with the repository's own build, test and lint commands — read them from its AGENTS.md or CLAUDE.md (Step 3). With octo-claude-pm installed, run them through its recorded verification for the commit you push (§2.2); the verify gate checks that record.
Only when the repository names no commands, fall back to:
dotnet build <solution>.sln --configuration DebugL # .NET
dotnet test <solution>.sln --configuration DebugL
npm run lint && npm test -- --watch=false # Angular/frontend
If build or tests fail, ask the user:
"Build/tests failed in [repo]: [error summary]. Fix first, or proceed anyway?"
For significant changes, ask about documentation:
"Does this change need documentation updates?"
Before any git push / gh pr create / az repos pr create, you must have explicit approval in the current session. Show the user what will happen and wait for their response:
Ready to commit and push:
- Repo: [repo-name]
- Message:
AB#1234 New: Add pipeline validation- Files: [file list or summary]
- Branch: feat/reimar/feature-name (or the
octo-claude-pmbranch name)- Will push + open PR: yes/no
If the user defers ("I'll look at it later"), STOP — you may commit locally only if explicitly asked, but do not push or open a PR.
With octo-claude-pm installed, the push of your own story branch and the PR follow its §2.2 instead (see the review checkpoint above).
Build the commit message using the format AB#<id> <Type>: <Description> (type from the table in "Commit Message and PR Title Format").
Co-Authored-By convention: OctoMesh repos use a model-specific trailer of the form
Co-Authored-By: Claude <model name> <[email protected]> — not a bare Claude. Use the
running model's name, e.g. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>. In Codex, use the actual model and the co-author address configured by the repository. If attribution is required and the identity is unknown, ask the user for it before committing.
For each repo with changes:
# Stage changes (prefer specific files over -A when possible)
git -C <repo> add <specific-files>
# Commit with heredoc for proper formatting
git -C <repo> commit -m "$(cat <<'EOF'
AB#<id> <Type>: <Description>
Co-Authored-By: <actual model and repository-approved address>
EOF
)"
# First push of a new branch MUST set upstream with -u
git -C <repo> push -u origin <branch>
# Subsequent pushes (upstream already set)
git -C <repo> push
CRITICAL: The initial push of a freshly created feature branch requires -u
(git push -u origin <branch>) to set the upstream tracking ref; later pushes can use a bare git push.
NEVER force-push to main. Always confirm before pushing (see Review Checkpoint).
Branch behind main? Update it from origin/main, not with git pull:
git -C <repo> fetch origin
git -C <repo> rebase origin/main
git -C <repo> push --force-with-lease origin "<branch>" # only your own branch, only right after the rebase
A force push is allowed only as --force-with-lease on your own branch right after such a rebase (octo-claude-pm §2.9); any other force push needs the user's go. In octo-documentation and octo-claude-skills the push of the story branch ends this skill when octo-claude-pm is installed: no PR, the docs batch opens it (§2.1).
With octo-claude-pm 0.46.0 or later installed, its verify gate refuses PR creation, gh pr ready, pushes to a branch with an open non-draft PR and review requests until the commit has the recorded verification and local review of its agent-operating-rules §2.2; a refusal prints the command to run. Who reviews locally, the order of the steps and the review rounds are in §2.2 and §2.3 — follow them there.
For GitHub repos (majority of OctoMesh repos). Derive the owner/repo slug from the origin URL (mostly meshmakers/<repo>; some are under reikla/, see Repo Remotes). The sed keeps the last two path parts, so HTTPS URLs, [email protected]: and SSH host aliases such as git@github-company: all work:
repo_slug="$(git -C <repo> remote get-url origin | sed -E 's#\.git$##; s#.*[:/]([^/:]+/[^/]+)$#\1#')"
gh pr create \
--repo "$repo_slug" \
--head "$(git -C <repo> branch --show-current)" \
--title "AB#<id> <Type>: <Description>" \
--body "$(cat <<'EOF'
## Summary
- <bullet points of changes>
## Azure DevOps Work Item
AB#<id>
## Test Plan
- [ ] Build passes (DebugL)
- [ ] Unit + integration tests pass
- [ ] Manual verification done
Generated with <actual client>
EOF
)"
For Azure DevOps repos (e.g., meshmakers_staging). Use --work-items to link the PR
directly to the ADO work item (space-separated IDs):
az repos pr create \
--repository <repo-name> \
--source-branch <branch> \
--target-branch main \
--title "AB#<id> <Type>: <Description>" \
--work-items <id> \
--org https://dev.azure.com/meshmakers \
--project OctoMesh
Report the PR URL(s) to the user when done.
After the PR is open: review and merge. If the plugin octo-claude-pm is installed, its agent-operating-rules §2.3 apply and this skill does not restate them: the CodeRabbit review rounds, which findings to collect and how to answer them, when a PR is ready, queuing it with request_merge, asking the developer to test it, and naming a larger change in the merge request and the test request (there is no human code review; agents never add human reviewers). The developer merges, never the agent.
Without octo-claude-pm (GitHub repos; $repo_slug as for gh pr create):
coderabbitai[bot]) reviews every non-draft PR automatically; if no review starts, comment @coderabbitai review.gh pr edit <n> --repo "$repo_slug" --title "AB#<id> <Type>: …" — the CodeRabbit status can stay green while the title check fails.CodeRabbit check, gh pr checks <n> --repo "$repo_slug"), the title check passed and every finding is answered.gh pr merge, no --admin, no --auto, no approving): leave testing and merging to the developer or a maintainer of the repository.When changes span multiple repos:
Most octo-* repos live at meshmakers/<repo> on GitHub (gh pr create). meshmakers_staging
is the sole Azure DevOps-hosted repo (az repos pr create). pipeline-editor, docs,
zenon-dynprop-api, and aspire-management-prototype are under reikla/ on GitHub.
CRITICAL: The local directory docs maps to the GitHub repo reikla/ai-docs (NOT reikla/docs).
If unsure of a repo's remote, verify before pushing: git -C <repo> remote get-url origin.
See repo-remotes.md for the full directory-to-remote table.
| Mistake | Prevention |
|---|---|
| Pushing without approval | Get explicit go-ahead this session before any push/PR |
| Committing without work item | Always resolve AB# first -- search, or get one (Step 4) |
| Wrong WIQL command | Use az boards query --wiql, NOT az boards work-item query |
Wrong or missing type (Change, Feat, AB#123: …) | Exactly one of Fix, New, Chore, Refactor, Test, Docs — CodeRabbit's title check flags anything else |
| Applying CodeRabbit findings blindly | Check each against the code and the work item; fix the valid ones, decline the rest with a reason |
Merging the PR yourself (gh pr merge, --admin, --auto) | Never; the developer tests and merges — with octo-claude-pm installed, follow its agent-operating-rules §2.3 |
Trusting the green CodeRabbit status | Read the pre-merge checks in CodeRabbit's PR comment; a failed title check can leave the status green |
| Creating a new Issue | Issue is legacy — use a User Story, Bug or Task under a Feature |
| Agent creating a User Story | With octo-claude-pm, ask the PO agent of the software part; agents create only Bugs and Tasks |
| Committing against an Epic or Feature | Reference a User Story / Bug / Task under the Feature (Step 4) |
| Story or Bug without parent | Every new User Story / Bug needs a parent Feature (Sustain Feature for maintenance) |
| Wrong team name | It's Solutions Team (plural), not "Solution Team" |
| Bare Co-Authored-By | Use the actual model name and approved co-author address |
| Wrong docs remote | docs dir -> reikla/ai-docs, not reikla/docs |
| Missing upstream on new branch | First push needs git push -u origin <branch> |
| Not reading CLAUDE.md | Always read before build/test/commit |
| Committing secrets | Review staged files for .env, credentials, tokens |
| Force-pushing to main | Never. Use feature branches for risky changes |
| Wrong build config | OctoMesh .NET repos require DebugL, not Debug or Release |
| Stale branch | Branch from a freshly fetched origin/main; update with git rebase origin/main, then --force-with-lease on your own branch only |
Verifying with a plain dotnet build | Run the repository's own build, test and lint (AGENTS.md / CLAUDE.md), recorded with octo-claude-pm |
Opening a PR in octo-documentation / octo-claude-skills | With octo-claude-pm, push the story branch only; the daily docs batch opens the PR |
main (only the octo-claude-pm exceptions §2.5/§2.5a allow it)-u (upstream not set)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub meshmakers/octo-claude-skills --plugin octo-claude-skills13 skills in this plugin
/octoPrimary entry point and router for ALL OctoMesh tasks. Drives the octo-cli for platform administration (users, roles, groups, tenants, clients, identity providers, blueprints, CK catalog/library management, stream-data archives, communication adapters/pipelines, AI services) and explores the data model and runtime instances via GraphQL. Routes specialized work to sibling skills. When unsure which OctoMesh skill to use, start here. Trigger on: OctoMesh, octo-cli, CLI command, environment switch, auth/login, AuthStatus, tenant, temporary tenant, test tenant, user, role, group, client credentials, non-interactive login, headless authentication, LogInClientCredentials, client mirroring, identity provider, blueprint install/update/rollback, CK catalog, library management, LibraryStatus, stream data archive, archive activation, EnableAi, adapter, deploy pipeline, data flow, MovePipelines, data model, Construction Kit, CK type, enum, association, GraphQL introspection, runtime instance query, list/count/search/filter entities, building, services, Docker, debugging, pipeline YAML, ETL, commit, PR, AB#, MCP server, Refinery Studio, communication operator, Helm./octo-agentDebugging and investigation agent for OctoMesh — diagnoses CK model failures (ResolveFailed, modelState 2, broken dependencies, version-bump cascades), blueprint install failures, and CK migration problems; inspects MongoDB tenant databases directly; runs selective DebugL builds and targeted tests to isolate a regression; and manages Docker volume backups for safe rollback. Use it when something broke after a build, version bump, merge, or upgrade and you need to find the root cause safely. Trigger on: help me fix, investigate this bug, what broke, isolate the issue, why is the model broken, ResolveFailed, modelState 2, multi-version conflict, error code 66, CK migration failed, blueprint failed, BlueprintInstallation, LibraryStatus, FixAll, check database state, query MongoDB, tenant DB, NuGet dependency chain, package not found, selective build, build fails, service won't start, health check failing, error in logs, cascade failure, version bump broke, something broke after upgrade, data corruption, tenant broken, backup before testing, restore database, safe rollback, test isolation, token refresh failing, Hangfire cron not firing./octo-app-builderBuild a complete OctoMesh-powered application end to end — a custom Construction Kit data model published to the CK catalog, an HTTP API made of dataflow pipelines on the tenant's Mesh Adapter, an optional containerized web app the Communication Operator rolls out to Kubernetes, and a blueprint that packages all of it so a single InstallBlueprint provisions any tenant. Encodes the verified build sequence (model → pipelines → app image → blueprint → install → deploy → verify) and the pitfalls that silently break it (blueprint catalog cache, pipeline registration rotation, HTTP response shaping, registry injection). Use this skill whenever someone wants to CREATE something new on OctoMesh — an app, a demo, an API, a workload, a blueprint — even if they only mention one piece of it. Trigger on - build an app on OctoMesh, create a workload, new OctoMesh application, OctoMesh demo, blueprint authoring, package as blueprint, seedDataPath, ckModelDependencies, InstallBlueprint, Application entity, DeployWorkload, operator-deployed app, HTTP API on the mesh adapter, FromHttpRequest API, octo-ckc publish, CK model catalog, local blueprint catalog, end-to-end OctoMesh app./octo-ck-miroVisualizes OctoMesh Construction Kits as UML class diagrams on a Miro board. Reads CK YAML definitions from a specified git branch in the local octo-construction-kit checkout (non-destructive via git show) and creates one detailed UML diagram per CK — types with attributes and datatypes, records, enums, inheritance arrows, associations with multiplicity, and cross-CK references. Lets the user pick a branch (default main) and choose between a new Miro board or adding to an existing board URL. Trigger on - visualize CK, visualize construction kit, CK diagram, CK to Miro, Miro board for CK, UML diagram for construction kit, CK model visualization, octo construction kit visualization, draw CK, show CK on Miro, CK class diagram./octo-deployGuide the promotion of an OctoMesh-powered app from local dev to the shared test-2 environment — publish the CK model and blueprint to the shared GitHub catalogs (octo-ckc / octo-bpm), push the app image to <registry>, register a test-2 octo-cli context, install + deploy on the target tenant, and verify everything WITHOUT kubectl access. Covers both the repeatable CI lane (azure-pipelines publishing on main) and the manual first-time lane, plus test-2-specific triage (server-side catalog cache refresh, ImagePullBackOff via lastDeploymentError, Tailscale reachability). Staging and production are deliberately out of scope for now. Use this skill whenever someone wants to get an app, blueprint, CK model, or workload onto test-2 or asks how to make their locally working OctoMesh app available to others. Trigger on - deploy to test-2, promote to test, install on test-2, publish blueprint, publish CK model, shared catalog, blueprint-libraries-build, construction-kit-libraries-build, octo-bpm, push to <registry>, registry push, test-2 tenant, Register-OctoCliContext, RefreshBlueprintCatalogs, blueprint not visible on test-2, ImagePullBackOff, ship the demo, make the app available./octo-devtoolsDrives OctoMesh local development through the octo-tools PowerShell cmdlets — building repos in dependency order, starting and stopping services (always non-interactively for agents via Start-Octo -nonInteractive $true / Stop-Octo), managing Docker or local kind Kubernetes infrastructure, syncing and branching git repos, NuGet package propagation, certificates, and octo-cli context/auth setup. Use it for any OctoMesh dev-environment or DevOps task. Trigger on build, compile, Invoke-BuildRange, inner loop, Invoke-OctoTestRun, run tests, Register-OctoCliContext, feature environment, New-OctoEnvironment, Invoke-BuildEnvironment, lane isolation, dotnet build, start services, stop services, Start-Octo, Stop-Octo, Invoke-BuildAll, Invoke-Build, infrastructure, docker compose, kind, Kubernetes, Install-OctoKubernetes, Deploy-OctoOperator, git sync, pull repos, push repos, Get-AllGitRepStatus, branch management, test branch, NuGet packages, clean build, kill dotnet, certificates, clone repos, register context, login local/staging/production, infrastructure backup, or any OctoMesh PowerShell cmdlet name.Other plugins' skills for the same job