agentleFS
brathod1432brathod1432/skill-stack/backend-api-engineer/SKILL.md

backend-api-engineer

Skill0 starsChanged 4 months agoMITView on GitHub

Use this skill when an AI coding agent should backend API design and implementation covering schemas, validation, auth boundaries, pagination, idempotency, errors, logging, and safe CORS. It supports developer tasks such as creating or changing HTTP APIs, defining request and response schemas, and related engineering work. Do not use it for frontend-only UI work.

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 22 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    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:

    Do not use network access unless the user explicitly approves a bounded external action in the current thread.

    line 16
  2. Distinctive:

    Do not install packages unless the user explicitly approves the exact package action.

    line 17
  3. Distinctive:

    Do not run destructive commands unless the user explicitly approves the exact operation.

    line 18
  4. Distinctive:

    Do not expose secrets, tokens, cookies, credentials, private keys, account data, or session material in output, logs, screenshots, reports, …

    line 19
  5. Distinctive:

    Do not access cross-workspace files unless explicitly approved.

    line 20
  6. Distinctive:

    Avoid unrelated rewrites, broad formatting churn, and speculative refactors.

    line 22
  7. Distinctive:

    Ask before side-effecting actions such as writing outside the requested scope, moving files, sending messages, changing accounts, …

    line 23
  8. Distinctive:

    Use this skill for:

    line 33
  9. Distinctive:

    Do not use this skill for:

    line 44
  10. Distinctive:

    Use a more specific neighboring engineering skill when the task clearly belongs there.

    line 50
  11. Distinctive:

    Keep controllers thin and service logic focused..

    line 58
  12. Distinctive:

    Avoid network access, package installation, browser profiles, account actions, and cross-workspace reads unless explicitly approved.

    line 65
  13. Distinctive:

    Verify locally with checks proportional to risk.

    line 67
  14. Distinctive:

    add API tests for success, validation, auth, conflicts, and limits.

    line 76
  15. Distinctive:

    verify logs, CORS, and sensitive error behavior.

    line 77
  16. Distinctive:

    Keep edits focused on the requested skill task.

    line 83
  17. Distinctive:

    Avoid unrelated refactors, broad formatting churn, dependency churn, and metadata churn.

    line 84
  18. Distinctive:

    Keep writes inside the approved repository or explicitly approved target paths.

    line 85
  19. Distinctive:

    Use preview, dry-run, or separate output files for risky file operations.

    line 86
  20. Distinctive:

    Verify after changes with local checks proportional to the blast radius.

    line 87
  21. Distinctive:

    Run API tests or local request checks..

    line 92
  22. Distinctive:

    Check logs do not print secrets or sensitive payloads..

    line 94

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

Backend API Engineer

Internal Safety Override

  • Local-first is the default mode: inspect local project files and user-provided context before considering external sources.
  • Do not use network access unless the user explicitly approves a bounded external action in the current thread.
  • Do not install packages unless the user explicitly approves the exact package action.
  • Do not run destructive commands unless the user explicitly approves the exact operation.
  • Do not expose secrets, tokens, cookies, credentials, private keys, account data, or session material in output, logs, screenshots, reports, or generated files.
  • Do not access cross-workspace files unless explicitly approved.
  • Preserve user changes and never revert work you did not make unless explicitly requested.
  • Avoid unrelated rewrites, broad formatting churn, and speculative refactors.
  • Ask before side-effecting actions such as writing outside the requested scope, moving files, sending messages, changing accounts, deploying, publishing, or modifying production data.

Skill-specific safety focus: this skill commonly touches auth, CORS, secrets, user-data, logging. Keep those areas explicit, bounded, and approval-gated.

Purpose

Backend API design and implementation covering schemas, validation, auth boundaries, pagination, idempotency, errors, logging, and safe CORS.

When to Use

Use this skill for:

  • creating or changing HTTP APIs.
  • defining request and response schemas.
  • adding pagination, rate limits, or idempotency.
  • reviewing auth boundaries and error handling.

Typical trigger language includes "build", "fix", "review", "debug", "test", "automate", "validate", "design", "implement", or "audit" when the task context matches this skill.

When Not to Use

Do not use this skill for:

  • frontend-only UI work.
  • database-only migration planning.
  • tasks where no service boundary is involved.

Use a more specific neighboring engineering skill when the task clearly belongs there.

Operating Principles

  • Define contracts before implementation..
  • Validate path, query, header, and body inputs..
  • Authorize before side effects..
  • Return consistent safe errors..
  • Keep controllers thin and service logic focused..

Local-First Workflow

  1. Restate the task, target files, and expected outcome.
  2. Inspect only approved local files, tool outputs, and user-provided context.
  3. Identify trust boundaries, side effects, and verification needs.
  4. Avoid network access, package installation, browser profiles, account actions, and cross-workspace reads unless explicitly approved.
  5. Make the smallest useful plan or change.
  6. Verify locally with checks proportional to risk.
  7. Report changes, evidence, and remaining uncertainty.

Advanced Workflow

  1. scope resource, method, users, and permissions.
  2. inspect existing routes, middleware, validators, services, and tests.
  3. design schemas, status codes, errors, pagination, and idempotency.
  4. implement controller and service changes.
  5. add API tests for success, validation, auth, conflicts, and limits.
  6. verify logs, CORS, and sensitive error behavior.

Safe Modification Workflow

  • Inspect first and understand the surrounding code, files, or workflow.
  • Preserve user changes and never revert edits you did not make unless explicitly requested.
  • Keep edits focused on the requested skill task.
  • Avoid unrelated refactors, broad formatting churn, dependency churn, and metadata churn.
  • Keep writes inside the approved repository or explicitly approved target paths.
  • Use preview, dry-run, or separate output files for risky file operations.
  • Verify after changes with local checks proportional to the blast radius.
  • Report what changed, what was verified, what was skipped, and why.

Validation Workflow

  • Run API tests or local request checks..
  • Confirm unauthorized and forbidden cases are distinct where the project expects that..
  • Check logs do not print secrets or sensitive payloads..

Expected Output

Separate the response into the parts that matter for the task:

  • Facts observed locally or provided by the user.
  • Assumptions and constraints.
  • Plan, recommendation, or changes made.
  • Verification results.
  • Risks, skipped checks, and open questions.

For reviews, lead with findings ordered by severity. For implementation, summarize the completed work and verification after making changes.

Escalation Points

Pause and ask before continuing when the task requires:

  • Network access, external website access, downloads, uploads, or account actions.
  • Package installation or new executable tooling.
  • Destructive commands, recursive deletes, mass moves, forced checkouts, or irreversible data changes.
  • Reading or handling credentials, tokens, cookies, private keys, browser profiles, or private accounts.
  • Cross-workspace file access.
  • Production deployment, cloud changes, billing changes, or customer-impacting actions.
  • Ambiguous user-impacting, security-sensitive, regulated, or data-loss-prone decisions.

Examples

1. Create endpoint

User asks: "Add an endpoint to create projects."

Expected behavior: Define route, schemas, validation, auth, service call, and response.

Safety check: Create only within the authenticated tenant or account.

Expected output: API contract, files changed, and tests.

2. Activity feed

User asks: "Return paginated account activity."

Expected behavior: Use bounded page size and stable ordering.

Safety check: Filter by authorized scope before pagination.

Expected output: Contract and edge cases.

3. Retryable import

User asks: "Make CSV import safe to retry."

Expected behavior: Add idempotency and conflict behavior.

Safety check: Do not log full uploaded rows.

Expected output: Idempotency design and tests.

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.

Reviews can't be read right now.

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.