agentleFS
rafidstudiorafidstudio/agent-skills/pern-stack/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when working on a full-stack web application built with or intended to use the PERN stack:

    line 8
  2. Distinctive:

    Use this skill for projects, feature development, refactoring, debugging, code review, architecture decisions and production improvements.

    line 18
  3. Distinctive:

    Use this skill for PERN applications, including new projects, feature development, refactoring, debugging, code review, architecture …

    line 22
  4. Distinctive:

    Keep frontend, backend, business logic, API, and data-access responsibilities clear.

    line 32
  5. Distinctive:

    Prefer simple, maintainable, domain-focused architecture.

    line 33
  6. Distinctive:

    Keep business logic separate from routes.

    line 38
  7. Distinctive:

    Use parameterized queries or a trusted ORM/query builder.

    line 40
  8. Distinctive:

    Consider data integrity and query performance.

    line 45
  9. Distinctive:

    Never trust client input.

    line 55
  10. Distinctive:

    Use secure authentication, password hashing, validation, CORS, and rate limiting where required.

    line 57
  11. Distinctive:

    Never expose sensitive internal errors.

    line 58
  12. Distinctive:

    Test critical business logic, APIs, authentication, authorization, validation, and database workflows.

    line 62
  13. Distinctive:

    When debugging, trace the full data flow, identify the root cause, check edge cases, and prevent regressions.

    line 63
  14. Distinctive:

    Use pagination and caching when justified.

    line 68
  15. Distinctive:

    Verify migrations, security, logging, environment configuration, tests, and deployment before production.

    line 69
  16. Distinctive:

    Prefer correctness, maintainability, and security.

    line 73
  17. Distinctive:

    Avoid unnecessary dependencies and abstractions.

    line 75
  18. Distinctive:

    Keep changes focused and reviewable.

    line 76
  19. Distinctive:

    Do not rewrite working code without a clear reason.

    line 77
  20. Distinctive:

    Consider scalability and failure scenarios.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Understand the Project

    • Review requirements, project structure, existing conventions, and the current frontend, backend, API, and database setup.
  2. Design the Architecture

    • Keep frontend, backend, business logic, API, and data-access responsibilities clear.
    • Prefer simple, maintainable, domain-focused architecture.
  3. 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.
  4. Database

    • Design PostgreSQL schemas with appropriate types, relationships, constraints, indexes, and migrations.
    • Consider data integrity and query performance.
  5. Frontend

    • Build maintainable React components with clear responsibilities.
    • Handle loading, error, empty, and success states.
    • Manage client/server state appropriately and avoid unnecessary complexity.
  6. 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.
  7. 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.
  8. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.