plugins/work-automation/skills/harness-automation/SKILL.md
Universal Harness Code + CI/CD + Pipeline automation patterns. Uses mcp__harness__* tools when available; falls back to hc CLI. Invoke for pipeline ops, PR workflow, deployment, feature flags, GitOps, IaCM, or when user says "harness", "pipeline", "run ci", "deploy".
npx skillsauth add markus41/claude harness-automationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Universal patterns for Harness platform operations. Project-agnostic — all account/org/project IDs come from environment or explicit arguments.
mcp__harness__* tools (if MCP harness is installed — preferred).hc CLI (fallback for local dev).curl (last resort).mcp__harness__harness_list # List resources (pipelines, PRs, deployments, repos)
mcp__harness__harness_get # Get specific resource
mcp__harness__harness_describe # Detailed description
mcp__harness__harness_execute # Trigger pipeline
mcp__harness__harness_status # Execution status
mcp__harness__harness_search # Cross-resource search
mcp__harness__harness_create # Create resource
mcp__harness__harness_update # Modify
mcp__harness__harness_delete # Remove
mcp__harness__harness_diagnose # Troubleshoot failures
mcp__harness__harness_schema # Pull schemas for YAML authoring
Harness resource identifiers:
account — tenant-wide (env HARNESS_ACCOUNT).org — organization (env HARNESS_ORG, default default).project — logical grouping (passed per-call).identifier — resource ID inside project.Never hard-code these in scripts. Read from env or parameters.
For services emitting container images:
{service}-{version}-{sanitized-branch}-{short-sha}-{YYYYMMDDHHMMSS}
Immutable. Never :latest. Tag is computed by CI template, not by the caller.
repos/*/harness/templates/ (or equivalent shared-templates repo) for an existing template.template: include — do not inline.mcp__harness__harness_execute
project: <project>
pipeline: <identifier>
inputs: { branch: "feature/foo" }
# Poll status
mcp__harness__harness_status
execution-id: <from previous>
mcp__harness__harness_list
resource: executions
project: <project>
pipeline: <identifier>
limit: 10
mcp__harness__harness_create
resource: pull-request
repo: <repo-identifier>
source: <branch>
target: main
title: "..."
body: "Refs <JIRA-KEY>"
git checkout -b <type>/<jira-key>-<slug>.Refs <JIRA-KEY> in body.git push -u origin <branch>.harness_create or hc pr create.harness_status.For PowerShell-based projects (e.g., tenant-management-kit):
steps:
- step:
type: Run
name: Run all tests
spec:
command: pwsh -File tools/run-all-tests.ps1
- step:
type: Run
name: Validate policies
spec:
command: pwsh -File tools/validate-all-policies.ps1
--no-verify.main / master.mcp__harness__harness_diagnose
execution-id: <failed execution>
Returns structured failure analysis. For connector failures, check mcp__harness__harness_get resource: connectors — credentials expire silently.
skills/claude-code-automation — headless mode for CI gatekeepers.skills/work-unit-protocol — Section 20 verification includes pipeline green.plugin: harness-platform — installed separately, provides richer operations.tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.