[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JGEGE005DXC2A4B9XFA1Z":3,"skill-same:01M75JGEGE005DXC2A4B9XFA1Z":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M75JGEGE005DXC2A4B9XFA1Z","create-agent",null,"Create and update Harness AI agent instances - standalone templates used as building blocks in pipelines. Agents contain a single agent step with connector-driven architecture requiring llmConnector (LLM access) and optional mcpConnectors (GitHub, Slack, Harness platform). Supports runtime inputs and task\u002Frules-based instruction. Use when asked to create an agent, update agent spec, modify agent configuration, automate tasks, perform agentic workflows, build autonomous systems, or work with AI agents. Trigger phrases: create agent, update agent, modify agent spec, AI agent, autonomous agent, agentic pipeline, automation task, automate workflow, Harness agent, code coverage agent, review agent, agentic task.","AdmiralGallade\u002Fharness-repository","AdmiralGallade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F59243621?v=4","01M759AG0891RDPWNGJBX1Y2TG","01M759AG10MS924J53ZWJ60AEC",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-agent\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: create-agent\ndescription: >-\n  Create and update Harness AI agent instances - standalone templates used as building blocks in pipelines. Agents contain a single agent step with connector-driven architecture requiring llmConnector (LLM access) and optional mcpConnectors (GitHub, Slack, Harness platform). Supports runtime inputs and task\u002Frules-based instruction. Use when asked to create an agent, update agent spec, modify agent configuration, automate tasks, perform agentic workflows, build autonomous systems, or work with AI agents. Trigger phrases: create agent, update agent, modify agent spec, AI agent, autonomous agent, agentic pipeline, automation task, automate workflow, Harness agent, code coverage agent, review agent, agentic task.\nmetadata:\n  author: Harness\n  version: 1.0.0\n  mcp-server: harness-mcp-v2\nlicense: Apache-2.0\ncompatibility: Requires Harness MCP v2 server (harness-mcp-v2)\n---\n\n# Create Agent\n\nCreate and update Harness AI agent instances - standalone templates used as building blocks in pipelines for automated code, agentic workflows, and infrastructure tasks.\n\n## Instructions\n\nFollow this workflow to create or update an agent. **This is INTERACTIVE — show YAML for review and wait for confirmation before creating\u002Fupdating the agent.**\n\n### Phase 1: Check Existing Solutions First\n\n**IMPORTANT: Before creating a new agent, check if an existing one can solve the use case.**\n\n1. **List existing agents** — Call `harness_list` with `resource_type=\"agent\"` (include `org_id` and `project_id` if scoped to a project)\n   - Check if any system or custom agents already exist that can handle this task\n   - Ask user if they want to use\u002Fmodify an existing agent instead of creating new\n2. **For updating existing agents** — Use `harness_get` with `resource_type=\"agent\"` and `agent_id` to retrieve the current agent configuration\n   - Review the current `spec`, `name`, `description`, and other fields\n   - Identify what needs to be changed (spec, name, description, wiki, logo)\n   - Use `harness_update` (not `harness_create`) to update the agent with only the fields that need modification\n\n### Phase 2: Requirements Gathering\n\nIf creating a new agent or updating an existing one, collect the following before generating YAML:\n\n#### 1. Agent Metadata\n- **Name**: Display name for the agent (e.g. \"Code Coverage Agent\", \"PR Reviewer\")\n- **Description**: Brief description of the agent's purpose (optional)\n- **UID**: Unique identifier (auto-generated from name if not provided — e.g. \"Code Coverage Agent\" → \"code_coverage_agent\")\n\n#### 2. Task Details\n\n**This is an INTERACTIVE requirements gathering process. Ask clarifying questions and verify understanding with the user before proceeding.**\n\n##### Step 1: Understand the Agent's Purpose\n\nAsk and clarify the following with the user:\n\n1. **Agent's exact goal**: What specific outcome should the agent achieve?\n   - Examples: \"Increase code coverage to 80%\", \"Review PRs for security vulnerabilities\", \"Generate unit tests for uncovered functions\"\n   - Be specific — avoid vague goals like \"improve code quality\"\n\n2. **Inputs the agent needs**: What data or context does the agent require to start?\n   - Repository information? (repo name, branch, PR number)\n   - Execution context? (pipeline execution ID, previous step outputs)\n   - Configuration? (coverage threshold, target files, exclusion patterns)\n   - Secrets? (API keys, tokens for external services)\n\n3. **Outputs the agent produces**: What artifacts, reports, or actions should result?\n   - Files? (COVERAGE.md, test files, reports)\n   - External actions? (create PR, post comments, send notifications)\n   - Data? (metrics, logs, analysis results)\n\n4. **What the agent works on**: What files, services, or systems does it interact with?\n   - Specific file paths or patterns? (e.g., `pkg\u002F**\u002F*.go`, `src\u002Fservices\u002F`)\n   - External services? (GitHub API, Slack, monitoring systems)\n   - Databases or APIs? (read-only access, write operations)\n\n5. **Task workflow**: Understand the user's workflow for the task — what should happen step-by-step (do 1, then 2, then 3, etc.)\n\n6. **Constraints and preferences**: Any user preferences for completing the task — limitations, rules, or coding standards the agent should follow\n   - Examples: \"Use idiomatic Go code\", \"Do not modify existing tests\", \"Keep reports under 10000 characters\"\n\n7. **Definition of done**: How do you know the agent succeeded?\n   - Specific criteria? (\"Coverage increased by X%\", \"All files have tests\")\n   - Artifacts created? (\"PR created with tests\", \"COVERAGE.md updated\")\n   - Exit conditions? (\"No security vulnerabilities found\", \"All checks passed\")\n\n##### Step 2: Recommend Configuration\n\nBased on the requirements gathered in Step 1, recommend specific configurations and verify with the user:\n\n1. **Task instructions** (`task` field):\n   - Break down the goal into detailed step-by-step instructions\n   - Include specific commands, file paths, and expected outcomes\n   - Reference inputs using `\u003C+inputs.fieldName>` syntax\n   - Example: \"1. Run `go test -cover .\u002F...` to measure coverage\\n2. Identify functions below 80% coverage\\n3. Generate tests for uncovered functions\\n4. Create PR with new tests\"\n\n2. **Runtime inputs** (`inputs` section in spec):\n   - Only add if user confirms runtime parameters are needed\n   - Map each input to what the agent needs (repo, branch, executionId, thresholds, etc.)\n   - Example: `repo` (string), `coverageThreshold` (string), `llmKey` (secret)\n\n3. **User preferences** (RULES section in `task` field):\n   - Convert constraints and coding standards into a dedicated RULES section at the end of the task\n   - Format as a markdown section with bullet points\n   - Be specific and actionable\n   - Example: Add `## RULES\\n- Use idiomatic Go code\\n- Do not modify existing tests\\n- Keep COVERAGE.md under 10000 characters` at the end of the task\n\n4. **Connectors**:\n   - LLM connector for model access (required for all agents) - User must create via Harness UI or MCP\n   - MCP connectors for external services (GitHub, Slack, Harness platform, etc.) - only if needed\n   - All authentication and secrets are managed within the connectors\n\n**Present this recommended configuration to the user and iterate until confirmed.**\n\n#### 3. Default Configuration & Inputs\n\n**Agent Structure:** Agents use `agent.step.run` format with a single step.\n\n**Default container image:**\n```yaml\ncontainer:\n  image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest\n```\n\n**Required environment variables:**\n```yaml\nenv:\n  ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>           # Points to anthropicModel input field\n  PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id> # Points to llmConnector input's id property\n```\n\n**Default max_turns:**\n```yaml\nmax_turns: 150  # Adjust 100-200 based on task complexity\n```\n\n**MCP configuration (only if external services needed):**\n```yaml\nmcp_format: harness\nmcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>  # Points to mcpConnectors input field\n```\n\n**Required inputs (always include):**\n```yaml\nagent:\n  inputs:\n    llmConnector:\n      type: connector\n      required: true\n      default: your_llm_connector_id  # User must replace with actual connector ID\n    \n    anthropicModel:\n      type: string\n      required: true\n      default: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile\u002F7p8sn93lhspw # User may replace with their preferred model\n```\n\n**Optional inputs (add as needed):**\n```yaml\n    # MCP connectors - only if agent needs external services\n    mcpConnectors:\n      type: array\n      default:\n        - your_github_mcp_connector  # User must replace\n        - your_slack_mcp_connector   # User must replace\n    \n    # Custom parameters\n    repo_name:\n      type: string\n      default: my-org\u002Fmy-repo\n```\n\n**Supported input types:** `string`, `secret`, `boolean`, `connector`, `array`\n\n**IMPORTANT:** Users must create connectors via Harness UI or `harness_create` with `resource_type=\"connector\"` before running the agent.\n\n### Phase 3: Generate Agent Spec\n\nAssemble the complete agent YAML specification (`spec` field):\n\n1. Start with `version: 1` and `agent:` structure\n2. Create `agent.step.run` block with:\n   - `container.image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest`\n   - `with` section:\n     - `task:` with step-by-step instructions and `## RULES` section\n     - `max_turns: 150` (adjust 100-200 based on complexity)\n     - `mcp_format: harness` (only if MCPs needed)\n     - `mcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>` (only if MCPs needed)\n   - `env` section:\n     - `ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>`\n     - `PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id>`\n3. Add `agent.inputs` section with:\n   - `llmConnector` (required - use placeholder ID)\n   - `anthropicModel` (required - use default ARN, but user may update)\n   - `mcpConnectors` (optional - only if needed)\n   - Custom inputs (as needed)\n\n**Always notify users to create connectors and replace placeholder IDs before running the agent.**\n\n### Phase 4: Present for Review\n\nPresent the complete agent configuration to the user:\n- Agent metadata (name, description, uid)\n- Full spec YAML\n- Required connectors\n\n**Wait for explicit confirmation before creating\u002Fupdating the agent.**\n\n### Phase 5: Create or Update Agent\n\nOnly after confirmation, use `harness_create` to create a new agent or `harness_update` to update an existing one:\n\n#### Creating a New Agent\n\n```\nCall MCP tool: harness_create\nParameters:\n  resource_type: \"agent\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: {\n    uid: \"\u003Cagent_identifier>\",\n    name: \"\u003CAgent Display Name>\",\n    description: \"\u003CBrief description of agent purpose>\",\n    spec: \"\u003Cagent YAML spec as a string>\",\n    wiki: \"\u003Coptional: markdown documentation>\"\n  }\n```\n\n**Key fields for creation:**\n- `uid` (required): Unique identifier. Auto-generated from `name` if not provided (e.g. \"Code Coverage Agent\" → \"code_coverage_agent\")\n- `name` (required): Display name for the agent\n- `description` (optional): Brief description\n- `spec` (required): The full agent YAML specification as a string (includes `version: 1`, `agent:`, `stages:`, etc.)\n- `wiki` (optional): Markdown documentation for the agent\n\n#### Updating an Existing Agent\n\n```\nCall MCP tool: harness_update\nParameters:\n  resource_type: \"agent\"\n  agent_id: \"\u003Cagent_identifier>\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: {\n    name: \"\u003CUpdated Display Name>\",           # optional\n    description: \"\u003CUpdated description>\",     # optional\n    spec: \"\u003Cupdated agent YAML spec>\",        # optional\n    wiki: \"\u003Cupdated markdown docs>\"           # optional\n  }\n```\n\n**Key notes for updates:**\n- All fields in the body are optional — only provide fields you want to update\n- Only custom agents (role='custom') can be updated; system agents cannot be modified\n- The `spec` field replaces the entire agent specification when provided\n- Use `harness_get` first to retrieve the current agent configuration before updating\n\n## Example: Code Review Agent\n\n```yaml\nversion: 1\nagent:\n  step:\n    run:\n      container:\n        image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest\n      with:\n        task: |\n          Review the pull request for repository \u003C+inputs.repo_name> on branch \u003C+inputs.branch>.\n          \n          1. Analyze code changes for security vulnerabilities\n          2. Check for code quality issues\n          3. Verify test coverage\n          4. Post review comments using GitHub MCP tools\n          \n          ## RULES\n          - Focus on critical security issues first\n          - Be constructive in feedback\n          - Suggest specific code improvements\n        max_turns: 150\n        mcp_format: harness\n        mcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>\n      env:\n        ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>\n        PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id>\n  \n  inputs:\n    llmConnector:\n      type: connector\n      required: true\n      default: your_llm_connector_id  # User must replace with actual connector ID\n    \n    anthropicModel:\n      type: string\n      required: true\n      default: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile\u002F7p8sn93lhspw\n    \n    mcpConnectors:\n      type: array\n      default:\n        - your_github_mcp_connector  # User must replace with actual connector ID\n    \n    repo_name:\n      type: string\n      default: my-org\u002Fmy-repo\n    \n    branch:\n      type: string\n      default: main\n```\n\n## CRITICAL GUIDELINES\n\n**These are essential rules you MUST follow when creating\u002Fupdating agents:**\n\n| Guideline                  | Rule                                                                                                                                     |\n| ----------------------------| ------------------------------------------------------------------------------------------------------------------------------------------|\n| **Check existing first**   | Always call `harness_list(resource_type=\"agent\")` to see if an existing agent can solve the use case before creating new                 |\n| **Updating agents**        | Use `harness_get` to retrieve current config, then `harness_update` (not `harness_create`) to modify. Only custom agents can be updated. |\n| **Agent spec format**      | The `spec` field contains standalone agent YAML (version: 1, agent:, stages:, steps:, inputs:)                                           |\n| **Connectors required**    | All agents require `llmConnector` (required) and optional `mcpConnectors` (array) in the inputs section — users must create these first  |\n| **Connector placeholders** | Always use placeholders like `your_llm_connector_id` and notify users to replace with actual connector IDs                               |\n| **Prefer inputs**          | Use `inputs` for configuration instead of environment variables — reference with `${{ inputs.variableName }}`                            |\n| **No clone\u002Fplatform**      | Do NOT add `clone`, `platform`, `os`, `arch`, or `allowed_tools` sections — agents are standalone with simplified structure              |\n| **Quality first**          | Agent quality is paramount — verify YAML structure, validate all references, ensure complete task instructions before creating           |\n\n\n## Examples\n\n- \"Create an agent that reviews PRs for security issues\" - Gather requirements, generate agent spec with GitHub MCP connector, create via `harness_create`\n- \"Update my code coverage agent to use a different model\" - Fetch agent with `harness_get`, modify spec, update via `harness_update`\n- \"Build an agent that runs tests and reports results to Slack\" - Multi-MCP setup with GitHub and Slack connectors\n- \"Create an autonomous agent to fix failing tests\" - Agent with shell steps and Claude Code plugin\n\n## Troubleshooting\n\n### Connector Not Found\n\n1. Verify the connector exists in Harness UI with the exact ID used in the agent spec\n2. Check that the connector is in the correct scope (account\u002Forg\u002Fproject)\n3. Create the connector using `harness_create` with `resource_type=\"connector\"` if it doesn't exist\n\n### MCP Tools Not Available\n\n1. Verify `mcpConnectors` input includes the correct connector IDs\n2. Check that MCP connectors are properly configured with valid endpoints\n3. Ensure the connector has the necessary permissions for the MCP server\n\n### Agent Task Failing\n\n1. Check `max_turns` is sufficient for task complexity (increase if needed)\n2. Verify all input references use correct syntax: `${{ inputs.variableName }}`\n3. Review task instructions for clarity and completeness\n\n## Best Practices\n\n- Use `type: connector` for LLM and MCP access\n- **Prefer inputs over environment variables** for all configuration\n- Include meaningful descriptions on all inputs\n- Provide detailed step-by-step instructions in `task` field with `## RULES` section\n- Adjust `max_turns` based on task complexity (100-200)\n- Always use placeholder connector IDs and notify users to replace them\n- Create connectors via Harness UI or `harness_create` with `resource_type=\"connector\"`\n\n","# Create Agent\n\nCreate and update Harness AI agent instances - standalone templates used as building blocks in pipelines for automated code, agentic workflows, and infrastructure tasks.\n\n## Instructions\n\nFollow this workflow to create or update an agent. **This is INTERACTIVE — show YAML for review and wait for confirmation before creating\u002Fupdating the agent.**\n\n### Phase 1: Check Existing Solutions First\n\n**IMPORTANT: Before creating a new agent, check if an existing one can solve the use case.**\n\n1. **List existing agents** — Call `harness_list` with `resource_type=\"agent\"` (include `org_id` and `project_id` if scoped to a project)\n   - Check if any system or custom agents already exist that can handle this task\n   - Ask user if they want to use\u002Fmodify an existing agent instead of creating new\n2. **For updating existing agents** — Use `harness_get` with `resource_type=\"agent\"` and `agent_id` to retrieve the current agent configuration\n   - Review the current `spec`, `name`, `description`, and other fields\n   - Identify what needs to be changed (spec, name, description, wiki, logo)\n   - Use `harness_update` (not `harness_create`) to update the agent with only the fields that need modification\n\n### Phase 2: Requirements Gathering\n\nIf creating a new agent or updating an existing one, collect the following before generating YAML:\n\n#### 1. Agent Metadata\n- **Name**: Display name for the agent (e.g. \"Code Coverage Agent\", \"PR Reviewer\")\n- **Description**: Brief description of the agent's purpose (optional)\n- **UID**: Unique identifier (auto-generated from name if not provided — e.g. \"Code Coverage Agent\" → \"code_coverage_agent\")\n\n#### 2. Task Details\n\n**This is an INTERACTIVE requirements gathering process. Ask clarifying questions and verify understanding with the user before proceeding.**\n\n##### Step 1: Understand the Agent's Purpose\n\nAsk and clarify the following with the user:\n\n1. **Agent's exact goal**: What specific outcome should the agent achieve?\n   - Examples: \"Increase code coverage to 80%\", \"Review PRs for security vulnerabilities\", \"Generate unit tests for uncovered functions\"\n   - Be specific — avoid vague goals like \"improve code quality\"\n\n2. **Inputs the agent needs**: What data or context does the agent require to start?\n   - Repository information? (repo name, branch, PR number)\n   - Execution context? (pipeline execution ID, previous step outputs)\n   - Configuration? (coverage threshold, target files, exclusion patterns)\n   - Secrets? (API keys, tokens for external services)\n\n3. **Outputs the agent produces**: What artifacts, reports, or actions should result?\n   - Files? (COVERAGE.md, test files, reports)\n   - External actions? (create PR, post comments, send notifications)\n   - Data? (metrics, logs, analysis results)\n\n4. **What the agent works on**: What files, services, or systems does it interact with?\n   - Specific file paths or patterns? (e.g., `pkg\u002F**\u002F*.go`, `src\u002Fservices\u002F`)\n   - External services? (GitHub API, Slack, monitoring systems)\n   - Databases or APIs? (read-only access, write operations)\n\n5. **Task workflow**: Understand the user's workflow for the task — what should happen step-by-step (do 1, then 2, then 3, etc.)\n\n6. **Constraints and preferences**: Any user preferences for completing the task — limitations, rules, or coding standards the agent should follow\n   - Examples: \"Use idiomatic Go code\", \"Do not modify existing tests\", \"Keep reports under 10000 characters\"\n\n7. **Definition of done**: How do you know the agent succeeded?\n   - Specific criteria? (\"Coverage increased by X%\", \"All files have tests\")\n   - Artifacts created? (\"PR created with tests\", \"COVERAGE.md updated\")\n   - Exit conditions? (\"No security vulnerabilities found\", \"All checks passed\")\n\n##### Step 2: Recommend Configuration\n\nBased on the requirements gathered in Step 1, recommend specific configurations and verify with the user:\n\n1. **Task instructions** (`task` field):\n   - Break down the goal into detailed step-by-step instructions\n   - Include specific commands, file paths, and expected outcomes\n   - Reference inputs using `\u003C+inputs.fieldName>` syntax\n   - Example: \"1. Run `go test -cover .\u002F...` to measure coverage\\n2. Identify functions below 80% coverage\\n3. Generate tests for uncovered functions\\n4. Create PR with new tests\"\n\n2. **Runtime inputs** (`inputs` section in spec):\n   - Only add if user confirms runtime parameters are needed\n   - Map each input to what the agent needs (repo, branch, executionId, thresholds, etc.)\n   - Example: `repo` (string), `coverageThreshold` (string), `llmKey` (secret)\n\n3. **User preferences** (RULES section in `task` field):\n   - Convert constraints and coding standards into a dedicated RULES section at the end of the task\n   - Format as a markdown section with bullet points\n   - Be specific and actionable\n   - Example: Add `## RULES\\n- Use idiomatic Go code\\n- Do not modify existing tests\\n- Keep COVERAGE.md under 10000 characters` at the end of the task\n\n4. **Connectors**:\n   - LLM connector for model access (required for all agents) - User must create via Harness UI or MCP\n   - MCP connectors for external services (GitHub, Slack, Harness platform, etc.) - only if needed\n   - All authentication and secrets are managed within the connectors\n\n**Present this recommended configuration to the user and iterate until confirmed.**\n\n#### 3. Default Configuration & Inputs\n\n**Agent Structure:** Agents use `agent.step.run` format with a single step.\n\n**Default container image:**\n```yaml\ncontainer:\n  image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest\n```\n\n**Required environment variables:**\n```yaml\nenv:\n  ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>           # Points to anthropicModel input field\n  PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id> # Points to llmConnector input's id property\n```\n\n**Default max_turns:**\n```yaml\nmax_turns: 150  # Adjust 100-200 based on task complexity\n```\n\n**MCP configuration (only if external services needed):**\n```yaml\nmcp_format: harness\nmcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>  # Points to mcpConnectors input field\n```\n\n**Required inputs (always include):**\n```yaml\nagent:\n  inputs:\n    llmConnector:\n      type: connector\n      required: true\n      default: your_llm_connector_id  # User must replace with actual connector ID\n    \n    anthropicModel:\n      type: string\n      required: true\n      default: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile\u002F7p8sn93lhspw # User may replace with their preferred model\n```\n\n**Optional inputs (add as needed):**\n```yaml\n    # MCP connectors - only if agent needs external services\n    mcpConnectors:\n      type: array\n      default:\n        - your_github_mcp_connector  # User must replace\n        - your_slack_mcp_connector   # User must replace\n    \n    # Custom parameters\n    repo_name:\n      type: string\n      default: my-org\u002Fmy-repo\n```\n\n**Supported input types:** `string`, `secret`, `boolean`, `connector`, `array`\n\n**IMPORTANT:** Users must create connectors via Harness UI or `harness_create` with `resource_type=\"connector\"` before running the agent.\n\n### Phase 3: Generate Agent Spec\n\nAssemble the complete agent YAML specification (`spec` field):\n\n1. Start with `version: 1` and `agent:` structure\n2. Create `agent.step.run` block with:\n   - `container.image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest`\n   - `with` section:\n     - `task:` with step-by-step instructions and `## RULES` section\n     - `max_turns: 150` (adjust 100-200 based on complexity)\n     - `mcp_format: harness` (only if MCPs needed)\n     - `mcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>` (only if MCPs needed)\n   - `env` section:\n     - `ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>`\n     - `PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id>`\n3. Add `agent.inputs` section with:\n   - `llmConnector` (required - use placeholder ID)\n   - `anthropicModel` (required - use default ARN, but user may update)\n   - `mcpConnectors` (optional - only if needed)\n   - Custom inputs (as needed)\n\n**Always notify users to create connectors and replace placeholder IDs before running the agent.**\n\n### Phase 4: Present for Review\n\nPresent the complete agent configuration to the user:\n- Agent metadata (name, description, uid)\n- Full spec YAML\n- Required connectors\n\n**Wait for explicit confirmation before creating\u002Fupdating the agent.**\n\n### Phase 5: Create or Update Agent\n\nOnly after confirmation, use `harness_create` to create a new agent or `harness_update` to update an existing one:\n\n#### Creating a New Agent\n\n```\nCall MCP tool: harness_create\nParameters:\n  resource_type: \"agent\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: {\n    uid: \"\u003Cagent_identifier>\",\n    name: \"\u003CAgent Display Name>\",\n    description: \"\u003CBrief description of agent purpose>\",\n    spec: \"\u003Cagent YAML spec as a string>\",\n    wiki: \"\u003Coptional: markdown documentation>\"\n  }\n```\n\n**Key fields for creation:**\n- `uid` (required): Unique identifier. Auto-generated from `name` if not provided (e.g. \"Code Coverage Agent\" → \"code_coverage_agent\")\n- `name` (required): Display name for the agent\n- `description` (optional): Brief description\n- `spec` (required): The full agent YAML specification as a string (includes `version: 1`, `agent:`, `stages:`, etc.)\n- `wiki` (optional): Markdown documentation for the agent\n\n#### Updating an Existing Agent\n\n```\nCall MCP tool: harness_update\nParameters:\n  resource_type: \"agent\"\n  agent_id: \"\u003Cagent_identifier>\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: {\n    name: \"\u003CUpdated Display Name>\",           # optional\n    description: \"\u003CUpdated description>\",     # optional\n    spec: \"\u003Cupdated agent YAML spec>\",        # optional\n    wiki: \"\u003Cupdated markdown docs>\"           # optional\n  }\n```\n\n**Key notes for updates:**\n- All fields in the body are optional — only provide fields you want to update\n- Only custom agents (role='custom') can be updated; system agents cannot be modified\n- The `spec` field replaces the entire agent specification when provided\n- Use `harness_get` first to retrieve the current agent configuration before updating\n\n## Example: Code Review Agent\n\n```yaml\nversion: 1\nagent:\n  step:\n    run:\n      container:\n        image: pkg.harness.io\u002Fvrvdt5ius7uwygso8s0bia\u002Fharness-agents\u002Fharness-ai-agent:latest\n      with:\n        task: |\n          Review the pull request for repository \u003C+inputs.repo_name> on branch \u003C+inputs.branch>.\n          \n          1. Analyze code changes for security vulnerabilities\n          2. Check for code quality issues\n          3. Verify test coverage\n          4. Post review comments using GitHub MCP tools\n          \n          ## RULES\n          - Focus on critical security issues first\n          - Be constructive in feedback\n          - Suggest specific code improvements\n        max_turns: 150\n        mcp_format: harness\n        mcp_servers: \u003C+connectorInputs.resolveList(\u003C+inputs.mcpConnectors>)>\n      env:\n        ANTHROPIC_MODEL: \u003C+inputs.anthropicModel>\n        PLUGIN_HARNESS_CONNECTOR: \u003C+inputs.llmConnector.id>\n  \n  inputs:\n    llmConnector:\n      type: connector\n      required: true\n      default: your_llm_connector_id  # User must replace with actual connector ID\n    \n    anthropicModel:\n      type: string\n      required: true\n      default: arn:aws:bedrock:us-east-1:587817102444:application-inference-profile\u002F7p8sn93lhspw\n    \n    mcpConnectors:\n      type: array\n      default:\n        - your_github_mcp_connector  # User must replace with actual connector ID\n    \n    repo_name:\n      type: string\n      default: my-org\u002Fmy-repo\n    \n    branch:\n      type: string\n      default: main\n```\n\n## CRITICAL GUIDELINES\n\n**These are essential rules you MUST follow when creating\u002Fupdating agents:**\n\n| Guideline                  | Rule                                                                                                                                     |\n| ----------------------------| ------------------------------------------------------------------------------------------------------------------------------------------|\n| **Check existing first**   | Always call `harness_list(resource_type=\"agent\")` to see if an existing agent can solve the use case before creating new                 |\n| **Updating agents**        | Use `harness_get` to retrieve current config, then `harness_update` (not `harness_create`) to modify. Only custom agents can be updated. |\n| **Agent spec format**      | The `spec` field contains standalone agent YAML (version: 1, agent:, stages:, steps:, inputs:)                                           |\n| **Connectors required**    | All agents require `llmConnector` (required) and optional `mcpConnectors` (array) in the inputs section — users must create these first  |\n| **Connector placeholders** | Always use placeholders like `your_llm_connector_id` and notify users to replace with actual connector IDs                               |\n| **Prefer inputs**          | Use `inputs` for configuration instead of environment variables — reference with `${{ inputs.variableName }}`                            |\n| **No clone\u002Fplatform**      | Do NOT add `clone`, `platform`, `os`, `arch`, or `allowed_tools` sections — agents are standalone with simplified structure              |\n| **Quality first**          | Agent quality is paramount — verify YAML structure, validate all references, ensure complete task instructions before creating           |\n\n\n## Examples\n\n- \"Create an agent that reviews PRs for security issues\" - Gather requirements, generate agent spec with GitHub MCP connector, create via `harness_create`\n- \"Update my code coverage agent to use a different model\" - Fetch agent with `harness_get`, modify spec, update via `harness_update`\n- \"Build an agent that runs tests and reports results to Slack\" - Multi-MCP setup with GitHub and Slack connectors\n- \"Create an autonomous agent to fix failing tests\" - Agent with shell steps and Claude Code plugin\n\n## Troubleshooting\n\n### Connector Not Found\n\n1. Verify the connector exists in Harness UI with the exact ID used in the agent spec\n2. Check that the connector is in the correct scope (account\u002Forg\u002Fproject)\n3. Create the connector using `harness_create` with `resource_type=\"connector\"` if it doesn't exist\n\n### MCP Tools Not Available\n\n1. Verify `mcpConnectors` input includes the correct connector IDs\n2. Check that MCP connectors are properly configured with valid endpoints\n3. Ensure the connector has the necessary permissions for the MCP server\n\n### Agent Task Failing\n\n1. Check `max_turns` is sufficient for task complexity (increase if needed)\n2. Verify all input references use correct syntax: `${{ inputs.variableName }}`\n3. Review task instructions for clarity and completeness\n\n## Best Practices\n\n- Use `type: connector` for LLM and MCP access\n- **Prefer inputs over environment variables** for all configuration\n- Include meaningful descriptions on all inputs\n- Provide detailed step-by-step instructions in `task` field with `## RULES` section\n- Adjust `max_turns` based on task complexity (100-200)\n- Always use placeholder connector IDs and notify users to replace them\n- Create connectors via Harness UI or `harness_create` with `resource_type=\"connector\"`\n\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"author":24,"version":25,"mcp-server":26},"Harness","1.0.0","harness-mcp-v2","Requires Harness MCP v2 server (harness-mcp-v2)","main","f3af6b6781621109871cca9e2989364afc509f3d","harnesses\u002Fharness-skills\u002Fskills\u002Fcreate-agent","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository","https:\u002F\u002Fgithub.com\u002FAdmiralGallade","Eager to learn!\r\nI'll do anything for more knowledge anywhere.","2026-06-06 07:34:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add AdmiralGallade\u002Fharness-repository --skill create-agent",{"tool":41,"command":42},"bunx","bunx skills add AdmiralGallade\u002Fharness-repository --skill create-agent",{"tool":44,"command":45},"pnpm","pnpm dlx skills add AdmiralGallade\u002Fharness-repository --skill create-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-agent\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M75JSM6WGJ71BTHM6VC8CJ1X","verify-sign","Add an Artifact Verification (SscaArtifactVerification) step to an existing Harness pipeline to verify Cosign signatures on container or local-stage artifacts. Supports CI, Security, and CD Deploy (containerized step group). Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Only works with existing pipelines. Use when asked to verify signed artifacts, verify artifact signature, verify-sign, validate Cosign signature, or configure SscaArtifactVerification. Trigger phrases: verify sign, verify artifact, artifact verification, verify signature, verify-sign, SscaArtifactVerification, verify signed image, verify Cosign, HAR verification.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75JSDSTP77TFM3JFGBB8QKP","template-usage","Track Harness template dependencies, usage, and adoption via MCP v2 tools. Find which pipelines or other templates reference a given template, analyze update impact, identify unused templates, and compare version adoption. Use when asked about template usage, template references, template dependencies, impact analysis before updating a template, finding unused templates, or tracking template adoption across projects. Trigger phrases: template usage, who uses template, template references, template dependencies, template impact, unused templates, template adoption. Do NOT use for creating or updating templates (use create-template instead).","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Ftemplate-usage\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75JS76Q2KC8PD598H2DZZRA","sign-artifact","Add an Artifact Signing (SscaArtifactSigning) step to an existing Harness pipeline to Cosign-sign container or local-stage artifacts with keyless, key-based, or Vault signing. Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Place after image build\u002Fpush; optionally upload .sig to the registry. Only works with existing pipelines. Use when asked to sign artifacts, add artifact signing, Cosign sign image, attach signature to registry, or configure SscaArtifactSigning. Trigger phrases: sign artifact, artifact signing, sign image, Cosign sign, add signing step, SscaArtifactSigning, attach signature, sign container image, HAR signing.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsign-artifact\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75JS16EEFFHA44EBNE8KWNT","sei-analytics","Advanced engineering analytics via Harness Software Engineering Insights (SEI) MCP. Configure sprint velocity and estimation accuracy tracking, engineering investment allocation breakdowns, sprint planning with capacity forecasts, and release readiness assessments. Use when asked about sprint analytics, investment allocation, sprint planning, capacity forecasting, or release readiness. Do NOT use for DORA metrics (use dora-metrics instead). Trigger phrases: sprint velocity, sprint analytics, investment allocation, capacity planning, sprint forecast, release readiness, engineering productivity, estimation accuracy, sprint planning, scope creep, code quality trends.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsei-analytics\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75JRWE3X3E7V9JFQ4ENZYZM","security-report","Generate security compliance reports using Harness SCS and STO via MCP. Analyze vulnerabilities, SBOMs, and manage exemptions. Use when user says \"security report\", \"vulnerabilities\", \"SBOM\", \"security scan\", \"compliance check\", or asks about application security.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsecurity-report\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75JRSFJSNZFZRFKX8MSPCS2","scorecard-review","Review service maturity scorecards and compliance using Harness IDP via MCP. Check production readiness, security, and documentation scores. Use when user says \"scorecard\", \"service maturity\", \"production readiness\", \"compliance score\", or asks about service health scores.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fscorecard-review\u002FSKILL.md",[],[]]