一键导入
nx-project
Create and manage Nx projects (libraries and applications). Use when creating new libs, organizing projects, or setting up project tags and dependencies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create and manage Nx projects (libraries and applications). Use when creating new libs, organizing projects, or setting up project tags and dependencies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Auth engine rules for QAuth. Use when working with CredentialProvider implementations, token claim generation, the provider registry, or the federation layer. Enforces the pluggable provider pattern and correct token claim behaviour.
OAuth 2.1 / OIDC rules for QAuth. Use when working with authorization endpoints, token flows, PKCE, JWKS, OIDC discovery, or spec compliance (RFC 9700, OIDC Core 1.0). Covers endpoint behaviour, email claim rules, and token security.
Database schema rules for QAuth. Use when working with the identity model, Drizzle ORM, migrations, repositories, or claim resolution. Reflects the CURRENT shipped schema — the identifier-abstraction model (ADR-002, IMPLEMENTED via Epic
Link GitHub issues in parent-child (sub-issue) relationships using GraphQL
Add a GitHub issue to a project board using gh project item-add
Create a new GitHub issue following QAuth project conventions using gh issue create
| name | nx-project |
| description | Create and manage Nx projects (libraries and applications). Use when creating new libs, organizing projects, or setting up project tags and dependencies. |
auth-server, migration-runner){domain}-{name} format (e.g., server-jwt, infra-db, shared-errors)| Domain | Path | Tag |
|---|---|---|
fastify/plugins | libs/fastify/plugins/{name} | scope:fastify-plugin |
infra | libs/infra/{name} | scope:infra |
server | libs/server/{name} | scope:server |
shared | libs/shared/{name} | scope:shared |
| Source Tag | Only Depend On |
|---|---|
scope:shared | scope:shared |
type:testing | scope:shared, scope:infra, scope:server, scope:fastify |
scope:infra | scope:infra, scope:shared |
scope:server | scope:server, scope:shared |
scope:fastify | scope:fastify, scope:server, scope:infra, scope:shared |
scope:app | scope:fastify, scope:shared, scope:server-config |
ALWAYS use Nx generators. NEVER create libraries manually.
pnpm nx generate @nx/js:library \
--name={name} \
--directory=libs/{domain}/{name} \
--projectNameAndRootFormat=as-provided \
--importPath=@qauth-labs/{domain}-{name} \
--bundler=none \
--linter=none \
--unitTestRunner=none \
--no-interactive
# Server library
pnpm nx generate @nx/js:library \
--name=auth \
--directory=libs/server/auth \
--projectNameAndRootFormat=as-provided \
--importPath=@qauth-labs/{domain}-{name} \
--bundler=none \
--linter=none \
--unitTestRunner=none \
--no-interactive
# Fastify plugin
pnpm nx generate @nx/js:library \
--name=auth \
--directory=libs/fastify/plugins/auth \
--projectNameAndRootFormat=as-provided \
--importPath=@qauth-labs/{domain}-{name} \
--bundler=none \
--linter=none \
--unitTestRunner=none \
--no-interactive
Add tags to project.json:
"tags": ["scope:{domain}", "type:{type}"]
Update index.ts exports
Verify path alias in tsconfig.base.json
scope:app - Application projectsscope:fastify-plugin - Fastify pluginsscope:infra - Infrastructure librariesscope:server - Server-side librariesscope:shared - Shared utilitiestype:db - Database-relatedtype:cache - Cache-relatedpnpm nx show project {project-name}
pnpm nx graph
pnpm nx show projects