Skip to content

chore(agents): move orchestration to skills and enforce dependency rules - #18094

Open
kdinev wants to merge 1 commit into
chore/agents-sync-generatorfrom
chore/agents-workflow-skills
Open

kdinev wants to merge 1 commit into
chore/agents-sync-generatorfrom
chore/agents-workflow-skills

Conversation

@kdinev

@kdinev kdinev commented Dec 4, 2026

Copy link
Copy Markdown
Member

Stack 3/3. Based on #18093. Review #18092 and #18093 first.

Description

Orchestration moves to skills.

  • New Agent Skills hold the full workflows: .agents/skills/igniteui-angular-implement-feature and .agents/skills/igniteui-angular-fix-bug, covering scope, impact, specialist order, backtracking, escalation, multi-branch fixes, and commit and PR conventions.
  • The skills run each specialist step in a subagent where the tool has subagents. In Claude Code, Codex and Cursor that is a general-purpose subagent told to read .agents/agents/<name>.md. Without subagents, the steps run one by one in the same session.
  • feature-orchestrator-agent and bug-fixing-orchestrator-agent stay as the Copilot entry points with their handoff buttons. Their bodies now load the skill, and they keep the old rule of stopping after the scope summary when no subagents are available.

The "Never" rules are now enforced.

  • .claude/settings.json denies Claude Code edits to every package.json and lock file, and reads of .env*, .npmrc, *.pem, *.key and *.pfx. It asks before npm install <pkg>, npm uninstall, npm update, npm dedupe and npm audit fix; npm ci is not affected.
  • A new workflow, .github/workflows/dependency-changes.yml, fails a pull request that changes a package.json or lock file until it has the dependencies label. Dependabot adds that label to its own PRs, so they pass as before.
  • .gitignore now ignores .claude/settings.local.json and .claude/worktrees/.

Motivation / Context

Custom agents have no cross-tool format, but skills do. As skills, the workflows work the same way in Copilot, Claude Code, Codex and Cursor.

The old policy.yaml listed these rules without enforcing them. Copilot has no file-level permission settings, so the CI check is what covers every tool and every contributor.

Process change for maintainers: a human-authored PR that changes a dependency, like the 22.3 update, needs the dependencies label before this check passes. Making the check required is a branch-protection decision and is not part of this PR.

Type of Change (check all that apply):

  • CI/CD
  • Documentation
  • Skills/Agents

Component(s) / Area(s) Affected:

Agent infrastructure (.agents/, AGENTS.md), .claude/settings.json, .github/workflows

How Has This Been Tested?

  • actionlint passes on the new workflow
  • .claude/settings.json parses; the rule syntax was checked against the Claude Code permissions docs (/path anchors at the project root, and Edit rules also cover Write)
  • Both skills meet the skill-authoring rules: WHEN TO USE and WHEN NOT TO USE markers, descriptions under 1,024 characters, bodies under 500 lines
  • node scripts/sync-agents.mjs --check passes
  • The dependency-changes workflow has not run yet. It only triggers for PRs into master and release branches, so it first runs once this stack lands on master.

🤖 Generated with Claude Code

Move the feature and bug-fix orchestration into two Agent Skills,
igniteui-angular-implement-feature and igniteui-angular-fix-bug, so
every tool that supports SKILL.md runs the same workflow. The skills
delegate each specialist step to a subagent where the tool has them,
and otherwise run the steps one by one in the same session. The two
orchestrator agents stay as the Copilot entry points with handoffs.

Enforce the dependency and secret rules from AGENTS.md:
- .claude/settings.json denies Claude Code edits to package.json and
  lock files and reads of secret files, and asks before npm commands
  that change dependencies.
- The Dependency changes workflow fails a pull request that changes a
  package.json or lock file until it has the dependencies label, which
  Dependabot adds itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active critical and moderate findings leave the dependency approval gate vulnerable to bypasses and incomplete rechecks, so the identified workflow and lockfile handling issues must be fixed.

5 open issues
What changed in this PR

Moves feature and bug-fix orchestration into shared skills while adding dependency-change safeguards across contributor tools.

Changes:

  • Extracts workflows into skills, retaining Copilot orchestrator entry points.
  • Adds Claude Code permissions and a dependency-approval CI check.
  • Updates contributor documentation and ignores local Claude files.
File Description
AGENTS.md Documents workflow skills and dependency approval.
.gitignore Ignores personal Claude settings and worktrees.
.github/​workflows/​dependency-changes.yml Adds the dependency-label approval gate.
.claude/​settings.json Adds file restrictions and command prompts.
.agents/​skills/​igniteui-angular-implement-feature/​SKILL.md Defines the shared feature workflow.
.agents/​skills/​igniteui-angular-fix-bug/​SKILL.md Defines the shared bug-fix workflow.
.agents/​README.md Explains skill entry points and safeguards.
.agents/​agents/​feature-orchestrator-agent.md Delegates feature orchestration to its skill.
.agents/​agents/​bug-fixing-orchestrator-agent.md Delegates bug-fix orchestration to its skill.

Review effort: Lite

pull-requests: read

on:
pull_request:
Comment on lines +29 to +30
changed=$(gh api --paginate "repos/$REPO/pulls/$PR_NUMBER/files" --jq '.[].filename' \
| grep -E '(^|/)(package\.json|package-lock\.json|yarn\.lock|pnpm-lock\.yaml)$' || true)
Comment thread .claude/settings.json
"permissions": {
"deny": [
"Edit(/package.json)",
"Edit(/package-lock.json)",

on:
pull_request:
types: [ opened, synchronize, reopened, labeled, unlabeled ]
APPROVED: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }}
run: |
changed=$(gh api --paginate "repos/$REPO/pulls/$PR_NUMBER/files" --jq '.[].filename' \
| grep -E '(^|/)(package\.json|package-lock\.json|yarn\.lock|pnpm-lock\.yaml)$' || true)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants