TLTan LeAI, cloud & automation for legacy systems · CalgaryLet’s talk
← All notes

Agent plugins for a legacy .NET codebase: from ticket to PR with three human gates

Two plugins that package a team's workflow for coding agents: one takes an Asana ticket to a reviewed branch through a spec, a plan and a review, the other audits and fixes UI against Figma. How they are laid out and how to use them.

Tried itRan it myself on a demo or prototype.

On Staffpoint, a large ASP.NET WebForms app on .NET Framework 4.8, every coding-agent session used to start the same way: paste the ticket, explain the repo, repeat the review rules, and hope the agent remembered which flows are dangerous. So we packaged that context into two plugins that live in the repository. Any developer, and any agent, now gets the same workflow. This note covers how they are laid out and how to use them.

What is in the bundle

PluginJobMCP servers
DeveloperTake an Asana ticket to a reviewed, pushed branch through spec-driven development (SDD)Asana, Figma
Web designerCreate Figma designs, audit live pages against Figma, fix the UI to matchFigma, Playwright

Both use the Codex plugin format: a manifest, an .mcp.json, and folders of skills, agent prompts and references. Everything that matters is plain Markdown, so the same files work in Claude Code or any other MCP-capable agent.

plugins/
├─ developer/
│  ├─ .codex-plugin/plugin.json
│  ├─ .mcp.json                 Asana + Figma
│  ├─ commands/start-ticket.md
│  ├─ agents/                   specification, planning, coding, reviewer
│  ├─ skills/                   start-ticket, repo context, one per agent
│  └─ references/               SDD contract, review policy, PR template, repo context
└─ webdesigner/
   ├─ .mcp.json                 Figma + Playwright
   ├─ skills/                   design-auditor, design-fixer, figma-designer
   └─ references/              audit workflow, visual identity, Figma naming

The references/ folder does the real work. The skills stay short and point to it, so a review rule lives in one place.

The developer plugin

One command starts it:

/staffpoint-developer:start-ticket <asana-task-id-or-url>

First, pick the smallest workflow

Before doing anything, the agent triages the task. Without this step, a typo fix gets a three-file spec.

PathWhenWhat happens
Quick answerRead-only question, one or two sentencesAnswers. No branch, no files.
Lightweight fixExplicit, local, reversible, no behavior change (typos, comments, broken links)The ticket text is the contract. Small change, narrow check.
Full SDDNew features, behavioral bugs, data, permissions, APIs, deployment, integrationsAll gates below.

A small diff is not the same as a low-risk change. A two-line edit in shift assignment still goes through Full SDD, and anything uncertain goes there too.

The full loop

flowchart TD
  A[Fetch Asana task<br/>relations, comments, attachments] --> B{Open<br/>dependencies?}
  B -- yes --> B1[Stop: proceed, wait,<br/>or switch task]
  B -- no --> C[Draft spec<br/>FR / QR / AC]
  C --> D{Human approves spec}
  D --> E[Branch + spec.md]
  E --> F[Plan with traceability]
  F --> G{Human approves plan}
  G --> H[Implement + validation.md]
  H --> I{Review vs spec}
  I -- FAIL --> H
  I -- PASS --> J[Commit, push, PR text,<br/>move Asana task]

Three things make it hold up:

  • Numbered requirements. The spec lists functional requirements (FR-001), quality constraints (QR-001) and acceptance criteria (AC-001). The plan maps each ID to steps, files and a check. The reviewer fills in a conformance matrix for each one. When a requirement is missing, review fails.
  • Change control. If implementation shows the behavior has to change, the agent stops, bumps the spec revision, shows the diff, and waits for approval again. Fixing code to match the current spec does not need a new revision.
  • Files, not chat. The spec, plan and validation evidence go in docs/specifications/<task-id>/. The PR text is saved to a file, and the agent never opens the PR itself.
FileHolds
spec.mdStatus (Draft, Approved, Superseded), revision, approval history
plan.mdSteps and the ID → file → check table
validation.mdPass, Fail or Not run for every AC-*, with evidence

Dependencies come only from Asana relations

The agent maps only explicit Asana relationships: dependencies, dependents, subtasks and parent. Only an incomplete dependency can stop the work. Figma links, GitHub links, comments and tasks in the same project are context. They are never treated as blockers. Without this rule, an agent finds “related” work everywhere and stops for no reason.

What the reviewer blocks

The review policy is written for this codebase, not copied from a generic checklist. It blocks:

  • committed secrets
  • weakened authentication or permission checks
  • new endpoints without validation and authorization
  • unsafe input reaching SQL, files or HTML
  • bypassing the concurrency-safe assignment path, or skipping its audit events
  • breaking billing updates after assignment
  • breaking existing handler request/response contracts
  • missing null handling on nullable database fields
  • breaking the build, packaging or deployment

On top of those, it fails any change that weakens or skips a spec requirement.

The web designer plugin

The rule is that Figma is the source of truth unless someone says otherwise.

SkillUse it toExample
Design auditorCompare a page with a Figma frame and write a QA report. No code changes.“Audit <page url> against <figma url with node-id>”
Design fixerFix CSS, JS, ASPX or HTML until the page matches“Fix the scheduler page to match <figma url>”
Figma designerCreate or update designs, components and prototypes“Create a Figma design for the client contacts page”

For an audit, give it the frame URL with node-id, the page URL, viewports (defaults are 1440×900 and 390×844), the login method, and the page state: role, filters, open modal, data. Findings come back as Must fix, Should fix or Verify, each with the expected result, the actual result, the selector or file, and where to fix it.

The fixer has guardrails that matter in WebForms. It keeps server controls, validators, postbacks and permission checks intact. It does not hardcode data to match a screenshot, and it asks before changing brand colors or shared components.

Installing

Codex reads the manifests directly. The repo has a local marketplace file:

codex plugin marketplace add "$(pwd)"
codex plugin add staffpoint-developer@staffpoint-local
codex plugin add staffpoint-webdesigner@staffpoint-local

Start a new session afterwards, then sign in to Asana and Figma when prompted.

Claude Code does not read .codex-plugin manifests. There are three ways in:

  1. Ask the agent to follow plugins/<plugin>/skills/start-ticket/SKILL.md directly. Nothing to install.
  2. Copy commands/, agents/ and skills/ into .claude/ to get a /start-ticket command.
  3. Add a .claude-plugin/plugin.json next to the Codex manifest, so one source serves both tools.

Either way, the MCP servers are the same:

{
  "mcpServers": {
    "asana": { "type": "http", "url": "https://mcp.asana.com/v2/mcp" },
    "figma": { "type": "http", "url": "https://mcp.figma.com/mcp" },
    "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] }
  }
}

Keep OAuth tokens, cookies and saved browser sessions out of the repo. If an audit needs a saved session, keep it in an ignored temp folder.

What I am watching

  • Gate fatigue. Two approvals per ticket is right for risky work. The triage step has to be honest, or people start approving without reading.
  • Two manifest formats. The Markdown is portable, but the packaging is not. One shared source for Codex and Claude Code is the next step.
  • Keeping references current. The plugins encode the repo’s rules. When the rules change, the references must change in the same PR, or the agent enforces old policy.

This plugin bundle is my working version of the loop in An AI-native SDLC. The spec format builds on what I tried in spec-driven development with Spec Kit.