Agent skill
nrpg-workflow
Use when working on NRPG Platform tasks to follow repo conventions (NextAuth cookie sessions, tenant safety, and contractor privacy) and to run the correct checks.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/productivity/nrpg-workflow
Metadata
Additional technical details for this skill
- short description
- NRPG workflow guardrails
SKILL.md
Follow these rules when implementing changes in this repository:
Auth (critical)
- Use NextAuth cookie sessions for web UI flows.
- Do not use
localStoragetokens for auth in the UI. - In API routes, prefer
getServerSession(authOptions)and server-side role checks. - Only allow
Authorization: Bearer ...when explicitly required for non-browser clients.
Multi-tenancy & privacy (critical)
- Never expose contractor identities to clients.
- Clients must not be able to browse/search contractors or contact them directly.
- Enforce role-based access for any contractor profile endpoints/pages.
Implementation workflow
- Scan for auth-token usage (
localStorage,Authorization: Bearer) and remove/limit as required. - Verify server-side auth checks in any modified
app/api/**/route.ts. - Run targeted checks for the area changed:
npm run lintnpm testnpm run build
- Fix failures only if they are related to the change being made.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?