Index of every page on this site: llms.txt
All skills
amirtaherkhani avatar

/nestjs-professional-software-engineering

@8272374
Run it yourself

Designs, implements, refactors, debugs, reviews, and verifies production-quality NestJS and TypeScript software. Use for NestJS feature development, bug fixes, APIs, libraries, testing, maintainability, developer experience, idiomatic syntax, or syntactic sugar. It inspects the current project and official version-appropriate documentation before selecting syntax, preserves public behavior, and tests the result. When other skills also apply, reconcile ownership before mutation.

Use this Skill: https://skilld.dev/gh/amirtaherkhani/nestjs-skills/nestjs-professional-software-engineering

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessyntactic-sugar.md

≈730 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Syntactic Sugar and API Ergonomics

Syntactic sugar is a convenience surface over existing semantics. It should reduce friction without creating hidden behavior or a second inconsistent API.

Decision test

Add sugar only when all of these are true:

  1. Repeated friction: real call sites contain ceremony, duplication, or a recurring misuse.
  2. Stable semantics: the underlying operation and failure model are understood and unlikely to fork immediately.
  3. Clear name: the convenient form communicates intent better than the explicit form.
  4. No hidden material behavior: I/O, state mutation, authorization, transactions, retries, caching, allocation, and expensive work remain discoverable.
  5. Type safety: overloads and inference reject invalid combinations rather than accepting ambiguous bags of options.
  6. Escape hatch: advanced callers retain access to meaningful control when needed.
  7. Compatibility: the addition does not silently reinterpret existing calls.
  8. Tests and examples: realistic examples cover normal, edge, and failure behavior.

If only code length improves, keep the explicit form.

Good shapes

  • Named constructors that validate a meaningful invariant.
  • Small helpers that preserve a stable underlying operation.
  • Defaults for common cases when defaults are safe, documented, and observable.
  • Fluent APIs for truly staged construction, with effects behind explicit verbs.
  • Framework adapters that keep application code independent of volatile vendor syntax.

Warning signs

  • Boolean arguments whose meaning is unclear at the call site.
  • Many overloads that accept overlapping shapes.
  • Getters or property access that perform I/O.
  • Constructors that start work, reach the network, or register global state.
  • Decorators or annotations that silently change authorization, transactions, retries, or persistence.
  • DSLs that replace familiar language constructs with project-specific magic.
  • Convenience methods that swallow errors, add unbounded retries, or change transaction scope.

API example

An explicit API:

await client.execute({
  operation: 'capture',
  paymentId,
  idempotencyKey,
  timeoutMs: 3_000,
});

A safe convenience method can preserve the same contract:

await client.capture(paymentId, {
  idempotencyKey,
  timeoutMs: 3_000,
});

The convenience method should delegate to the explicit operation, return the same result type, preserve error and cancellation behavior, and expose options that materially affect correctness. It should not silently invent an idempotency key or retry a payment with an unknown outcome.

Migration

Prefer additive sugar. If replacing an existing public form:

  • inventory consumers;
  • document old and new forms;
  • provide deprecation or migration guidance;
  • keep behavior aligned during the compatibility window;
  • test both forms against the same contract.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    The skill provides a comprehensive and secure framework for professional NestJS software engineering. It emphasizes idiomatic syntax, input validation, and rigorous verification using project-specific tools, with no evidence of malicious behavior or security risks.

  • Socket4d

    No alerts

  • Snyk4d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8272374. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 5 days ago
metadata
{
  "author": "amirtaherkhani",
  "version": "2.1.1"
}

README badge

README badge for amirtaherkhani/nestjs-skills/nestjs-professional-software-engineering