Implement ag playbook

From gabrielmoreira/agent-skills-mirror · View interactive version

Implement ag playbook is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Implement a playbook from its PROMPT specification files. Supports both single-framework (PROMPT-REACT.md, etc.) and 3-framework (PROMPT-3-FRAMEWORKS.md) modes.

How to use this skill

Skill file

Usage: /implement-ag-playbook PLAYBOOK_NAME [MODE]

Examples:

Implement the specified playbook based on its existing PROMPT specification files.


Playbook Structure Reference

Complete playbooks have this structure (see v2/playbooks/README.md):

v2/playbooks/[name]/
├── PROMPT-3-FRAMEWORKS.md    # Builds → react-example/, vue-example/, lit-example/
├── PROMPT-REACT.md           # Builds → react/
├── PROMPT-VUE.md             # Builds → vue/
├── PROMPT-LIT.md             # Builds → lit/
└── design/                   # Shared assets (mockups, icons, images)

Single-Framework vs 3-Frameworks differences:


Phase 0: Validation

  1. Verify playbook exists
  1. Read the prompt specification

Phase 1: Project Scaffolding

  1. Create Vite project(s)

For 3-frameworks mode:

```bash

npm create vite@latest react-example -- --template react-ts

npm create vite@latest vue-example -- --template vue-ts

npm create vite@latest lit-example -- --template lit-ts

```

For single-framework mode:

```bash

npm create vite@latest react -- --template react-ts # PROMPT-REACT.md

npm create vite@latest vue -- --template vue-ts # PROMPT-VUE.md

npm create vite@latest lit -- --template lit-ts # PROMPT-LIT.md

```

  1. Install dependencies
  1. Initialize AgnosticUI CLI

```bash

npx agnosticui-cli init --framework [react|vue|lit] --skip-prompts

npx agnosticui-cli add [COMPONENTS from prompt]

```


Phase 2: Configuration

  1. Copy design assets (if applicable)
  1. Vue vite.config.ts

```typescript

vue({

template: {

compilerOptions: {

isCustomElement: (tag) => tag.startsWith('ag-'),

},

},

})

```

  1. Token imports

```typescript

import './components/ag/styles/ag-tokens.css'

import './components/ag/styles/ag-tokens-dark.css'

```

  1. Font setup
  1. TypeScript configuration (Vue)

```json

"strict": false,

"noUnusedLocals": false,

"noUnusedParameters": false

```


Phase 3: Implementation

  1. Implement each framework
  1. Verify builds

Phase 4: Verification

  1. Visual verification
  1. Cross-framework consistency

Phase 5: Commit

  1. Stage and commit

Key Patterns

Icon Imports

Component Imports

Event Handling


Common Issues & Fixes

| Issue | Fix |

|-------|-----|

| Vue ag-* warnings | Add isCustomElement to vite.config.ts |

| TypeScript strict errors | Relax tsconfig.app.json settings |

| Missing dark mode | Import both ag-tokens.css AND ag-tokens-dark.css |

| Button isDisabled prop | Use disabled not isDisabled |

| Timeline connector misalignment | Ensure core component has ::slotted(*) { box-sizing: border-box } |


Incomplete Playbook Warning

If a playbook is missing PROMPT files, notify the user:

Warning: The $ARGUMENTS playbook is incomplete.

Present: [list files]

Missing: [list files]

Complete playbooks should have:

- PROMPT-3-FRAMEWORKS.md → react-example/, vue-example/, lit-example/

- PROMPT-REACT.md → react/

- PROMPT-VUE.md → vue/

- PROMPT-LIT.md → lit/

Would you like to:

1. Implement only the available prompts

2. Generate the missing PROMPT files first


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.