Common Skill Creator
ASecurityCreate a compact skill with frontmatter using a precise What + When description. Cover NestJS GraphQL subscription resolvers, WebSocket transport, typed async iterators, PubSub topic ownership, connection authentication, subscription-time authorization, tenant isolation, event publication after commit, unsubscribe/disconnect cleanup, multi-instance broker choice, observability, and integrated transport tests. Use surgical triggers such as `*.resolver.ts`, `graphql subscriptions`, `PubSub`, an...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 15 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-skill-creator --agent claude-codeAre you the author of Common Skill Creator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-skill-creator-2c2bd6f8)# GraphQL Subscriptions for NestJS
Create a compact skill with frontmatter using a precise What + When description. Cover NestJS GraphQL subscription resolvers, WebSocket transport, typed async iterators, PubSub topic ownership, connection authentication, subscription-time authorization, tenant isolation, event publication after commit, unsubscribe/disconnect cleanup, multi-instance broker choice, observability, and integrated transport tests. Use surgical triggers such as `*.resolver.ts`, `graphql subscriptions`, `PubSub`, and `WebSocket`.
Required workflow: confirm driver, schema mode, transport, broker, and event contract; define explicit schema nullability and shared payload types; centralize topics; authenticate and authorize before returning an iterator; never trust client tenant IDs; publish validated events after commit; dispose listeners on every lifecycle path; test filtering, reconnects, malformed connection parameters, isolation, and end-to-end delivery.
Keep the body under 100 lines. Put transport setup, adapter code, schemas, and examples longer than 10 lines in `references/`. Include pressure-tested red flags: “subscriptions are just queries,” “in-memory PubSub is fine in production,” and “the client can provide the tenant.” Acceptance requires schema/type parity, authorized delivery, cleanup evidence, and a passing integrated transport test. Run with-skill/baseline and trigger evaluations before release.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- pressure-1.baseline.md
- pressure-1.with-skill.md
- pressure-2.baseline.md
- pressure-2.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.