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.development
Enhanced plan-authoring skill with Pre-Writing context gathering, task metadata, non-TDD templates, Red Flags, telemetry, and an automated plan linter. Use when you have a spec or requirements for a multi-step task, before touching code.
tools
Documentation intelligence engine with graph-based API docs, algorithm library, and drift detection
tools
Ultraplan cloud planning — kick off a plan in the cloud from your terminal, review and revise in the browser, then execute remotely or send back to CLI
tools
--- name: mcp description: Configure MCP servers for Claude Code — stdio vs HTTP, authentication, Tools/Resources/Prompts distinction, channels (CI webhook, mobile relay, Discord bridge, fakechat), and cost of always-loaded tools. Use this skill whenever adding an MCP server, debugging connection issues, choosing between MCP Tools vs Prompts vs Resources, installing channel servers, or managing .mcp.json. Triggers on: "MCP server", "mcp config", "add Obsidian MCP", "install context7", "channels"