A collection of packaged instructions and guidelines for AI coding agents, optimized for use with LLM Gateway and the AI SDK.
Best practices for implementing image generation with LLM Gateway and the AI SDK. Covers API integration, frontend rendering, error handling, and performance optimization.
llmgateway-skills/
├── packages/
│ └── skills-build/ # Build tooling for skills
├── skills/
│ └── image-generation/ # Image generation skill
│ ├── rules/ # Individual rule files
│ ├── AGENTS.md # Compiled output (generated)
│ ├── SKILL.md # Skill overview
│ └── metadata.json # Version and metadata
└── README.md
- Node.js 18+
- pnpm 9+
pnpm install# Build all skills
pnpm build:all
# Build specific skill
pnpm build
# Validate rule files
pnpm validate
# Development mode (build + validate)
pnpm dev- Copy the template file in
skills/[skill-name]/rules/_template.md - Name your file with the appropriate prefix (e.g.,
api-route-setup.md) - Fill in the frontmatter and content
- Run
pnpm buildto regenerate the AGENTS.md file
Each rule follows a consistent structure:
---
title: Rule Title Here
impact: MEDIUM
impactDescription: Optional description
tags: tag1, tag2
---
## Rule Title Here
**Impact: MEDIUM (optional impact description)**
Brief explanation of the rule and why it matters.
**Incorrect (description):**
\`\`\`typescript
// Bad example
\`\`\`
**Correct (description):**
\`\`\`typescript
// Good example
\`\`\`
Reference: [Link](https://example.com)- Fork the repository
- Create your feature branch
- Add or modify rules following the template
- Run
pnpm validateto check your changes - Run
pnpm buildto regenerate documentation - Submit a pull request
MIT