agentleFS
zircote-pluginszircote-plugins/github-agentic-workflows/.github/copilot-instructions.md

github-agentic-workflows

Copilot instructions2 starsChanged 8 months agoMITView on GitHub

This is the aw-author Claude Code plugin (v1.3.0) for authoring, validating, and maintaining GitHub Agentic Workflow (gh-aw) markdown files. The repository lives at zircote/github-agentic-workflows. gh-aw workflows are markdown files with YAML frontmatter in .github/workflows/, compiled to .lock.yml via gh aw compile. This plugin provides the reference materials, skills, and automated pipelines that keep those workflows correct and current. This workflow runs daily around 07:00 (fuzzy schedule) and executes: The pipeline checks before running: - Discussion titled "gh-aw Intelligence Report —…

The file

We split this copilot-instructions.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All write operations go through safe-outputs:

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Instructions — aw-author Plugin

Project Identity

This is the aw-author Claude Code plugin (v1.3.0) for authoring, validating, and maintaining GitHub Agentic Workflow (gh-aw) markdown files. The repository lives at zircote/github-agentic-workflows.

gh-aw workflows are markdown files with YAML frontmatter in .github/workflows/, compiled to .lock.yml via gh aw compile. This plugin provides the reference materials, skills, and automated pipelines that keep those workflows correct and current.

Repository Structure

commands/              Slash command entry points (/aw-author, /aw-daily, /aw-merge, /aw-report, /aw-status, /aw-upgrade)
skills/
  aw-author/           Authoring skill + 9 reference files (the canonical gh-aw spec subset)
  aw-daily/            Autonomous daily pipeline skill + gap analysis references
  gh-aw-report/        Intelligence reporting skill + knowledge base + search queries
agents/
  aw-analyst.md        Deep analysis agent for workflow review
.github/workflows/
  daily-intelligence.md       Daily autonomous pipeline (gh-aw, fuzzy schedule)
  daily-intelligence.lock.yml Compiled workflow (DO NOT EDIT)
  weekly-develop-merge.md     Weekly develop→main merge (gh-aw, fuzzy schedule)
  weekly-develop-merge.lock.yml Compiled workflow (DO NOT EDIT)
outputs/gh-aw-reports/ Dated intelligence reports

Branching Strategy

  • main — stable, production branch
  • develop — daily automated updates land here via PR
  • daily-intelligence-YYYY-MM-DD — ephemeral feature branches created by /aw-daily, deleted after merge to develop
  • Weekly: develop merges to main via /aw-merge (squash merge, then develop resets to main)

Daily Pipeline (.github/workflows/daily-intelligence.md)

This workflow runs daily around 07:00 (fuzzy schedule) and executes:

  1. Research — web fetch + GitHub API queries on 5 tracked repos (github/gh-aw, github/github-mcp-server, github/copilot-cli, githubnext/agentics, zircote/github-agentic-workflows)
  2. Knowledge base update — append stable facts to skills/gh-aw-report/knowledge-base.md
  3. Discussion posting — post report to Discussions in the "Project News" category
  4. Gap analysis — compare findings against 11 reference files in skills/aw-author/references/ and skills/gh-aw-report/references/
  5. Issue creation — file issues for identified gaps (max 5 per run, dedup by [aw-daily] prefix)
  6. Implementation — edit reference files on a branch from develop
  7. PR creation — PR to develop with Closes #NNN links
  8. Summary — report what changed

Idempotency

The pipeline checks before running:

  • Discussion titled "gh-aw Intelligence Report — {today}" already exists → skip research
  • PR with branch daily-intelligence-{today} exists → skip entirely
  • Issue with [aw-daily] prefix matching a gap → skip that issue

Safe-Output Constraints

All write operations go through safe-outputs:

  • create-discussion: title-prefix "gh-aw Intelligence Report — ", category "project news", max 1
  • create-issue: title-prefix "[aw-daily] ", labels [automated, reference-update], max 5
  • create-pull-request: title-prefix "docs(references): ", base-branch develop, max 1
  • push-to-pull-request-branch: target "*", title-prefix "docs(references): ", labels [automated], max 10
  • add-comment: discussions: false, max 3
  • add-labels: allowed [automated, reference-update, intelligence], max 5

Weekly Merge (.github/workflows/weekly-develop-merge.md)

Runs weekly on Monday around 09:00. Checks if develop is ahead of main, creates a PR if so. Does NOT auto-merge — merge follows repository policy.

Reference Files — The Source of Truth

The 9 files in skills/aw-author/references/ are the canonical gh-aw specification subset for this plugin. They are the primary target of the daily pipeline's gap analysis and updates:

FileContent
frontmatter-schema.mdComplete YAML frontmatter field reference (~2100 lines)
safe-outputs.mdAll safe-output types, parameters, constraints (~850 lines)
tools-reference.mdTool types and configuration (~470 lines)
production-gotchas.mdRuntime gotchas verified through production debugging (~380 lines)
orchestration.md7 orchestration patterns + engine model selection (~325 lines)
examples.md5 annotated example workflows + minimal template (~430 lines)
validation.mdValidation checklist, anti-patterns, debugging (~230 lines)
markdown-body.mdProse body writing guide + instruction files (~320 lines)
llms-resources.mdFetchable spec URLs (~87 lines)

Critical Rules

  1. Never edit .lock.yml files — they are generated by gh aw compile
  2. add-comment safe-outputs must include discussions: false — omitting this causes HTTP 422 when the App lacks Discussions permission
  3. plugins: frontmatter field is DEPRECATED — use dependencies: and run gh aw fix --write
  4. Write permissions are NOT allowed in permissions: block — the compiler rejects them; all writes go through safe-outputs
  5. Trigger field is issues (plural), not issue
  6. Event-triggered workflows need reaction: eyes in the on: block
  7. ${{ }} expressions in fenced code blocks are NOT interpolated — use env vars instead
  8. Knowledge base is append-only — mark superseded entries with [SUPERSEDED by YYYY-MM-DD], never delete
  9. Section headers are anchors, not line numbers — the daily pipeline uses headers to locate edit targets because line numbers shift between runs
  10. PRs are created as drafts — open with --draft or draft: true, then mark ready with gh pr ready after all changes are pushed and verified

GitHub Discussion Category

Reports post to the Project News category:

  • Category ID: DIC_kwDORSXBr84C61Lr
  • Repository: zircote/github-agentic-workflows

Tracked Repositories for Activity Queries

RepositoryWhat to Extract
github/gh-awNew features, breaking changes, bug reports, version bumps
github/github-mcp-serverVersion changes, new tools, breaking changes
github/copilot-cliCLI updates, new agent modes
githubnext/agenticsNew sample workflows, pattern changes
zircote/github-agentic-workflowsSelf-referential activity

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.