AterDev/Perigon.CLI / .agents/skills/codegen
codegen
VerifiedUse for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.
Code Generation
Workflow
- Inspect the relevant generator in
src/CodeGenerator/Generate. - Inspect helpers in
src/CodeGenerator/Helperbefore adding parsing logic. - Inspect templates in
src/CodeGenerator/Templateswhen output text changes. - Inspect regression tests in
tests/StudioMod.Tests/Generate.
Conventions
- Prefer Roslyn APIs for C# syntax, symbols, namespaces, usings, attributes, and type analysis.
- Prefer
Microsoft.OpenApiAPIs for OpenAPI traversal, schemas, and operations. - Keep parsing/model extraction in helpers and emitted output composition in generators or templates.
- Avoid brittle string parsing when a structured API is available.
- Keep generated output deterministic: stable ordering, whitespace, using lists, and no machine-specific paths.
- Use raw string literals for embedded multi-line generated source.
- Be careful around nullable values, enums, file uploads, path/query/body parameter placement, and special OpenAPI names.
Tests
- Add focused tests under
tests/StudioMod.Tests/Generate. - Use fixture OpenAPI files under
tests/StudioMod.Tests/Generate/Fixtures. - For Roslyn helpers, use small source snippets that exercise the syntax or semantic case.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |