# agentic-workflows

Adopt this skill: https://proskills.md/skills/other/microsoft-agentrc-github-skills-agentic-workflows

Page: https://proskills.md/skills/other/microsoft-agentrc-github-skills-agentic-workflows
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .github/skills/agentic-workflows/SKILL.md
size: 4881
upstream: https://github.com/microsoft/agentrc/blob/main/.github/skills/agentic-workflows/SKILL.md

```text
---
name: agentic-workflows
description: Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.
---

# Agentic Workflows Router

Use this skill when a user asks to design, create, update, debug, or upgrade GitHub Agentic Workflows in this repository.

This skill is a dispatcher: identify the task type, load the matching workflow prompt/skill file, and follow it directly. Keep responses concise and ask a clarifying question if the correct prompt is unclear.

Repository overlay (optional):
- If `.github/aw/instructions.md` exists, load it with `@.github/aw/instructions.md` after loading the matched prompt/skill.
- Precedence: repository overlay instructions override upstream defaults when they conflict.

Read only the files you need:
Load these files from `github/gh-aw` (they are not available locally).
- `.github/aw/action-container-substitutions.md`
- `.github/aw/agent-runtime-instructions.md`
- `.github/aw/agentic-chat.md`
- `.github/aw/agentic-workflows-mcp.md`
- `.github/aw/asciicharts.md`
- `.github/aw/campaign.md`
- `.github/aw/charts-trending.md`
- `.github/aw/charts.md`
- `.github/aw/cli-commands.md`
- `.github/aw/compat.md`
- `.github/aw/configure-agentic-engine.md`
- `.github/aw/context.md`
- `.github/aw/create-agentic-workflow-trigger-details.md`
- `.github/aw/create-agentic-workflow.md`
- `.github/aw/create-shared-agentic-workflow.md`
- `.github/aw/debug-agentic-workflow.md`
- `.github/aw/dependabot.md`
- `.github/aw/deployment-status.md`
- `.github/aw/designer-mappings.md`
- `.github/aw/designer.md`
- `.github/aw/drive-memory.md`
- `.github/aw/enclaves.md`
- `.github/aw/evals.md`
- `.github/aw/experiments.md`
- `.github/aw/github-agentic-workflows.md`
- `.github/aw/github-mcp-server-pagination.md`
- `.github/aw/github-mcp-server-tools.md`
- `.github/aw/github-mcp-server.md`
- `.github/aw/instructions.md`
- `.github/aw/intent.md`
- `.github/aw/jobs.md`
- `.github/aw/linter-workflows.md`
- `.github/aw/llms.md`
- `.github/aw/loop.md`
- `.github/aw/lsp.md`
- `.github/aw/maintainer.md`
- `.github/aw/mcp-clis.md`
- `.github/aw/memory-stateful-patterns.md`
- `.github/aw/memory.md`
- `.github/aw/messages.md`
- `.github/aw/multi-agent-research.md`
- `.github/aw/network.md`
- `.github/aw/optimize-agentic-workflow.md`
- `.github/aw/patterns.md`
- `.github/aw/playwright.md`
- `.github/aw/pr-reviewer.md`
- `.github/aw/release-workflow.md`
- `.github/aw/report.md`
- `.github/aw/reuse.md`
- `.github/aw/safe-outputs-automation.md`
- `.github/aw/safe-outputs-content.md`
- `.github/aw/safe-outputs-management.md`
- `.github/aw/safe-outputs-runtime.md`
- `.github/aw/safe-outputs.md`
- `.github/aw/serena-tool.md`
- `.github/aw/shared-safe-jobs.md`
- `.github/aw/skills.md`
- `.github/aw/subagents.md`
- `.github/aw/syntax-agentic.md`
- `.github/aw/syntax-core.md`
- `.github/aw/syntax-engine.md`
- `.github/aw/syntax-tools-imports.md`
- `.github/aw/syntax.md`
- `.github/aw/test-coverage.md`
- `.github/aw/test-expression.md`
- `.github/aw/token-optimization-caching-budgets.md`
- `.github/aw/token-optimization-observability.md`
- `.github/aw/token-optimization.md`
- `.github/aw/triggers.md`
- `.github/aw/update-agentic-workflow.md`
- `.github/aw/upgrade-agentic-workflows.md`
- `.github/aw/visual-regression.md`
- `.github/aw/workflow-constraints.md`
- `.github/aw/workflow-editing.md`
- `.github/aw/workflow-patterns.md`

After loading the matching workflow prompt or skill, follow it directly:
- Design workflows from scratch via interview: `.github/aw/designer.md`
- Create new workflows: `.github/aw/create-agentic-workflow.md`
- Configure or add declarative engines: `.github/aw/configure-agentic-engine.md`
- Update existing workflows: `.github/aw/update-agentic-workflow.md`
- Debug, audit, or investigate workflows: `.github/aw/debug-agentic-workflow.md`
- Upgrade workflows and fix deprecations: `.github/aw/upgrade-agentic-workflows.md`
- Create shared components or MCP wrappers: `.github/aw/create-shared-agentic-workflow.md`
- Create report-generating workflows: `.github/aw/report.md`
- Fix Dependabot manifest PRs: `.github/aw/dependabot.md`
- Analyze coverage workflows: `.github/aw/test-coverage.md`
- Render compact markdown charts: `.github/aw/asciicharts.md`
- Map CLI commands to MCP usage: `.github/aw/cli-commands.md`
- Choose workflow architecture and patterns: `.github/aw/patterns.md`
- Optimize token usage and cost: `.github/aw/token-optimization.md`
- Design long-running multi-agent research workflows: `.github/aw/multi-agent-research.md`
- Add skills or agent plugins requested by the user (`skills:` / `plugins:` frontmatter, never on-the-fly installs): `.github/aw/skills.md`

When the task involves OTEL, OTLP, traces, observability backends, or telemetry-driven analysis, also read and follow `skills/otel-queries/SKILL.md` after loading the matching workflow prompt or skill.
```

## File: README.md
upstream: https://github.com/microsoft/agentrc/blob/main/README.md

````text
# AgentRC

**Context engineering for AI coding agents.**

[![CI](https://github.com/microsoft/agentrc/actions/workflows/ci.yml/badge.svg)](https://github.com/microsoft/agentrc/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

> [!WARNING]
> **Experimental** — Under active development. Expect breaking changes. [Open an issue](https://github.com/microsoft/agentrc/issues) with feedback.

---

AI coding agents work best when they know how to build, test, and lint your code — plus your architecture, conventions, and the external services your team relies on. Most repos ship none of that.

AgentRC reads your codebase and generates the files that close that gap — then evaluates whether they actually help, so the context doesn't go stale as your code evolves.

```bash
npx github:microsoft/agentrc
```

Works as a CLI, as a [VS Code extension](docs/extension.md), and in your [CI/CD pipeline](docs/ci-integration.md) to monitor drift. No config needed — runs on any repo with Node.js 22+.

![AgentRC — Measure, Generate, Maintain cycle](docs/assets/agentrc-overview.png)

## What it does

### Measure

Score your repo’s AI-readiness across 9 pillars and a 5-level maturity model. Find out what context is missing — from basic linting to MCP server configs.

```bash
npx github:microsoft/agentrc readiness
```

### Generate

Produce tailored instruction files, evals, and dev configs via the Copilot SDK. No templates — AgentRC reads your actual code and generates context specific to your stack.

```bash
npx github:microsoft/agentrc instructions
```

### Maintain

Context goes stale as your codebase evolves. Evaluate whether your instructions still improve agent responses, and run the check in CI so drift doesn't slip through.

```bash
npx github:microsoft/agentrc eval
```

## AgentRC maintains itself with GitHub Agentic Workflows

This repository dogfoods [GitHub Agentic Workflows](https://github.github.com/gh-aw/) for recurring maintenance and demos:

| Workflow                                                                    | Purpose                                                                   | Output                         |
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------ |
| [AgentRC Readiness Report](.github/workflows/agentrc-readiness-report.md)   | Runs AgentRC against this repository and explains the highest-impact gaps | One short-lived issue          |
| [AgentRC Readiness Upgrade](.github/workflows/agentrc-readiness-upgrade.md) | Improves one evidence-backed instruction and verifies the result          | One draft PR                   |
| [Issue Triage](.github/workflows/issue-triage.md)                           | Classifies new issues and asks for missing information                    | Bounded labels and one comment |
| [CI Failure Doctor](.github/workflows/ci-doctor.md)                         | Diagnoses failed CI from logs and repository changes                      | One issue or one comment       |

The source workflows are Markdown. `gh aw compile` generates the reviewable `.lock.yml` workflows that GitHub Actions executes. CI fails when those generated files drift.

See [Agentic Workflows](docs/agentic-workflows.md) for the architecture and maintenance commands. Use the [golden demo runbook](docs/agentic-workflows-demo.md) for the lone-maintainer narrative, exact stage flow, and fallback plan.

## Works at every scale

| Workflow                  | Command                                   |
| ------------------------- | ----------------------------------------- |
| Interactive hub           | `agentrc`                                 |
| One-time setup            | `agentrc init`                            |
| CI quality gate           | `agentrc readiness --fail-level 3 --json` |
| Batch across an org       | `agentrc batch`                           |
| Automated PR for any repo | `agentrc pr owner/repo`                   |

Works with **GitHub** and **Azure DevOps**. Supports monorepos, multi-root VS Code workspaces, and custom [policies](docs/policies.md).

## What gets generated

| File                              | Purpose                                    |
| --------------------------------- | ------------------------------------------ |
| `.github/copilot-instructions.md` | Teaches AI agents your repo's conventions  |
| `.vscode/mcp.json`                | Connects AI to your stack's tools and data |
| `.vscode/settings.json`           | Tunes VS Code for AI-assisted development  |
| `agentrc.eval.json`               | Test cases to measure instruction quality  |

> For multi-agent support (Copilot + Claude + others), generate `AGENTS.md` with `--output AGENTS.md`. See [Custom instructions in VS Code](https://code.visualstudio.com/docs/copilot/customization/custom-instructions).

## Works with APM

[APM](https://github.com/microsoft/apm) (Agent Package Manager) distributes agent instructions, skills, and prompts across repos — like npm for AI agent configs.

AgentRC generates the content. APM distributes it:

- **In your project** — run `agentrc init` to generate instructions, then `apm install org/standards` to pull in shared agent packages from your team
- **For your team** — create a dedicated APM package with your best instructions and skills, then teammates install it with `apm install`
- **At scale** — `apm audit` scans for security issues; `apm-policy.yml` enforces org standards across all repos

The `.instructions.md` format is shared by both tools — no conversion needed when moving instructions into APM packages.

## Documentation

|                                                    |                                                         |
| -------------------------------------------------- | ------------------------------------------------------- |
| **[Getting Started](docs/getting-started.md)**     | Prerequisites and first run                             |
| **[Concepts](docs/concepts.md)**                   | Maturity model, readiness pillars, how generation works |
| **[Commands](docs/commands.md)**                   | Full CLI reference                                      |
| **[Configuration](docs/configuration.md)**         | Areas, workspaces, monorepos                            |
| **[Policies](docs/policies.md)**                   | Custom readiness scoring                                |
| **[At Scale](docs/at-scale.md)**                   | Batch processing across orgs                            |
| **[CI Integration](docs/ci-integration.md)**       | GitHub Actions & Azure Pipelines                        |
| **[VS Code Extension](docs/extension.md)**         | Sidebar views, commands, settings                       |
| **[Agent Plugin](plugin/README.md)**               | Install as a Copilot agent plugin with built-in skills  |
| **[Agentic Workflows](docs/agentic-workflows.md)** | Dogfooding, maintenance, and live demo guide            |
| **[Golden Demo](docs/agentic-workflows-demo.md)**  | Lone-maintainer story and stage-ready runbook           |
| **[Examples](examples/)**                          | Configs, evals, and policies                            |

[Customize AI in VS Code](https://code.visualstudio.com/docs/copilot/customization/overview) · [Custom instructions](https://code.visualstudio.com/docs/copilot/customization/custom-instructions) · [CONTRIBUTING.md](CONTRIBUTING.md)

## Troubleshooting

**"Copilot CLI not found"** — Install the [GitHub Copilot Chat extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) in VS Code. The CLI is bundled with it.

**"Copilot CLI not logged in"** — Run `copilot` in your terminal, then `/login`.

**"GitHub auth required"** — `brew install gh && gh auth login`, or set `GITHUB_TOKEN` (or `GH_TOKEN`).

**"Azure DevOps auth required"** 
````
