pern-stack
Skill3 starsChanged 3 months agoMITView on GitHub
Build, review, debug, and improve full-stack applications using PostgreSQL, Express.js, React, and Node.js with maintainable and production-ready practices.
In this repositoryOne other file it gives its agents.
- npm-packageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 20 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when working on a full-stack web application built with or intended to use the PERN stack:
- Distinctive: line 18
Use this skill for projects, feature development, refactoring, debugging, code review, architecture decisions and production improvements.
- Distinctive: line 22
Use this skill for PERN applications, including new projects, feature development, refactoring, debugging, code review, architecture …
- Distinctive: line 32
Keep frontend, backend, business logic, API, and data-access responsibilities clear.
- Distinctive: line 33
Prefer simple, maintainable, domain-focused architecture.
- Distinctive: line 38
Keep business logic separate from routes.
- Distinctive: line 40
Use parameterized queries or a trusted ORM/query builder.
- Distinctive: line 45
Consider data integrity and query performance.
- Distinctive: line 55
Never trust client input.
- Distinctive: line 57
Use secure authentication, password hashing, validation, CORS, and rate limiting where required.
- Distinctive: line 58
Never expose sensitive internal errors.
- Distinctive: line 62
Test critical business logic, APIs, authentication, authorization, validation, and database workflows.
- Distinctive: line 63
When debugging, trace the full data flow, identify the root cause, check edge cases, and prevent regressions.
- Distinctive: line 68
Use pagination and caching when justified.
- Distinctive: line 69
Verify migrations, security, logging, environment configuration, tests, and deployment before production.
- Distinctive: line 73
Prefer correctness, maintainability, and security.
- Distinctive: line 75
Avoid unnecessary dependencies and abstractions.
- Distinctive: line 76
Keep changes focused and reviewable.
- Distinctive: line 77
Do not rewrite working code without a clear reason.
- Distinctive: line 78
Consider scalability and failure scenarios.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pern-stack
Use this skill when working on a full-stack web application built with or intended to use the PERN stack:
- PostgreSQL for data storage.
- Express.js for backend APIs.
- React for the frontend.
- Node.js as the runtime.
Use this skill for projects, feature development, refactoring, debugging, code review, architecture decisions and production improvements.
When to Use
Use this skill for PERN applications, including new projects, feature development, refactoring, debugging, code review, architecture decisions, and production improvements.
Instructions
Understand the Project
- Review requirements, project structure, existing conventions, and the current frontend, backend, API, and database setup.
Design the Architecture
- Keep frontend, backend, business logic, API, and data-access responsibilities clear.
- Prefer simple, maintainable, domain-focused architecture.
Backend & API
- Design consistent APIs and validate requests at the boundary.
- Keep business logic separate from routes.
- Handle authentication, authorization, errors, and transactions properly.
- Use parameterized queries or a trusted ORM/query builder.
Database
- Design PostgreSQL schemas with appropriate types, relationships, constraints, indexes, and migrations.
- Consider data integrity and query performance.
Frontend
- Build maintainable React components with clear responsibilities.
- Handle loading, error, empty, and success states.
- Manage client/server state appropriately and avoid unnecessary complexity.
Security
- Never trust client input.
- Protect sensitive routes and credentials.
- Use secure authentication, password hashing, validation, CORS, and rate limiting where required.
- Never expose sensitive internal errors.
Testing & Review
- Test critical business logic, APIs, authentication, authorization, validation, and database workflows.
- When debugging, trace the full data flow, identify the root cause, check edge cases, and prevent regressions.
Performance & Production
- Optimize queries, indexes, API requests, and React rendering.
- Use pagination and caching when justified.
- Verify migrations, security, logging, environment configuration, tests, and deployment before production.
General Principles
- Prefer correctness, maintainability, and security.
- Reuse sound existing patterns.
- Avoid unnecessary dependencies and abstractions.
- Keep changes focused and reviewable.
- Do not rewrite working code without a clear reason.
- Consider scalability and failure scenarios.
- Explain important trade-offs when multiple approaches are valid.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

