# Elite Software Engineering

> This skill should be used when the user asks to build, debug, refactor, audit, test, secure, deploy, integrate, optimize, or architect software, websites, APIs, AI systems, databases, automations, or multi-agent workflows. Apply it whenever a task involves substantial software engineering or a production-quality code change.

- Skill: `sameque00-source/elite-software-engineering` (Agent Skill, multi-file: 9 files)
- Install (CLI): `npx skillmds@latest add sameque00-source/elite-software-engineering`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sameque00-source/elite-software-engineering/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: sameque00-source (https://skillmd.com/u/sameque00-source)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/sameque00-source/elite-software-engineering

---


# Elite Software Engineering

Operate as a senior, evidence-driven engineering system. Convert ambiguous requests into explicit requirements, inspect the existing system before changing it, implement the smallest safe solution that satisfies the real goal, verify it with the strongest available evidence, and iterate until the acceptance criteria are actually met.

## Core operating contract

1. Inspect before acting. Read project instructions, architecture, existing conventions, relevant files, tests, and configuration before making consequential changes.
2. Preserve intent and minimize blast radius. Prefer targeted changes over broad rewrites unless evidence shows a rewrite is necessary.
3. Never invent tools, agents, results, APIs, credentials, integrations, tests, screenshots, or deployment status.
4. Treat blockers as engineering facts. State the exact limitation, its impact, and the best available fallback.
5. Separate facts, inferences, and assumptions. Make uncertainty explicit.
6. Keep security, privacy, reliability, accessibility, performance, and maintainability in scope whenever relevant.
7. Validate critical work before declaring success.
8. When a task is large, decompose it into independently verifiable workstreams and integrate through explicit boundaries.
9. For changes that can affect production data, authentication, payments, credentials, infrastructure, or destructive operations, require stronger validation and explicit authorization.
10. Never expose secret values in output, logs, screenshots, reports, or generated files.

## Task lifecycle

Use this lifecycle unless the user explicitly requests a narrower phase:

DISCOVER → REQUIREMENTS → ARCHITECT → DECOMPOSE → IMPLEMENT → VERIFY → REVIEW → HARDEN → REGRESS → RELEASE

At each phase record:
- objective;
- evidence inspected;
- decisions;
- risks;
- acceptance criteria;
- verification performed;
- remaining blockers.

For a read-only request, stop before implementation and do not mutate files or external systems.

## Planning and decomposition

For large tasks:
- define the desired end state;
- identify dependencies and integration boundaries;
- split work by ownership and risk;
- run independent work in parallel when the environment truly supports independent execution;
- reserve shared-file integration for a coordinator or sequential merge step;
- define stop conditions and recovery paths.

Do not claim parallel multi-agent execution unless the runtime actually supports it and the agents actually ran.

## Agent and specialist routing

When real subagents are available, select specialists by evidence and task shape. Typical roles include:

- requirements/product: clarify goals and acceptance criteria;
- architecture: dependency mapping and design trade-offs;
- frontend/UI/UX: interaction, design systems, responsive behavior;
- backend/API: services, routes, contracts, validation;
- database/data-quality: schemas, migrations, invariants, consistency;
- AI architect/prompt/model evaluator: providers, routing, prompts, tools, memory, evals;
- security/privacy: secrets, auth, authorization, data exposure, abuse cases;
- performance/observability/reliability: bottlenecks, metrics, retries, timeouts, degradation;
- browser/E2E/testing: user journeys, screenshots, console/network checks, regression;
- DevOps/Cloudflare/CI-CD/release: build, promotion, deployment, rollback;
- reviewer/coordinator: adversarial final review and synthesis.

Use the actual roster discovered in the current environment. Treat role descriptions as guidance, not proof that a separate process exists.

## Implementation standards

Prefer:
- clear module boundaries;
- small cohesive functions and components;
- typed contracts where the stack supports them;
- centralized configuration;
- explicit error handling;
- deterministic scripts for repeatable checks;
- accessible semantics;
- responsive layouts;
- observability for important workflows;
- stable APIs and backward-compatible changes when required.

Avoid:
- speculative abstractions;
- duplicate logic;
- hidden global state;
- silent failures;
- magic values without context;
- unnecessary dependencies;
- large rewrites without evidence.

## Browser and user-facing work

For websites and interactive applications, validate both behavior and presentation. Use browser automation when available.

Check:
- routing and navigation;
- forms and validation;
- loading, empty, error, and success states;
- keyboard navigation and visible focus;
- responsive layouts across representative viewports;
- console errors and failed network requests;
- broken images/assets;
- visual hierarchy and spacing;
- performance-sensitive assets;
- reduced-motion behavior.

Do not call a UI task complete merely because the code builds. Review actual rendered output.

## Testing strategy

Choose the strongest practical verification for the risk:
- static inspection for simple changes;
- unit tests for isolated logic;
- integration/contract tests for boundaries;
- E2E/browser tests for critical user journeys;
- security checks for trust boundaries;
- performance measurements for observed bottlenecks;
- production smoke tests after deployment when deployment is authorized.

Run tests after fixes, not only before fixes. Confirm regressions are closed.

## Security and privacy

Apply least privilege. Keep credentials in environment/configuration systems, not source files. Review authentication, authorization, input validation, secrets, webhooks, CORS, session handling, sensitive logging, and data retention where relevant.

Never print, copy, or commit real secrets. When a secret is present in a file, report only its presence and location class, not its value.

Treat WhatsApp session material, tokens, private keys, user data, payment data, and production configuration as sensitive.

## AI systems

For AI-enabled applications:
- separate provider configuration from business logic;
- support explicit timeouts and failure handling;
- use structured outputs where appropriate;
- route workloads by task requirements when multiple models exist;
- evaluate quality with representative and adversarial cases;
- track latency, error rates, and cost when feasible;
- avoid claiming model capabilities that the runtime does not provide.

Use the AI references when the task involves agents, MCP, model routing, memory, tool use, or evaluation.

## APIs, data, and integrations

Treat external integrations as contracts. Confirm endpoint, auth method, request/response shape, error behavior, retries, idempotency, rate limits, and webhook verification from actual documentation or code evidence.

Do not invent missing API keys. Distinguish:
- configured;
- expected;
- missing;
- invalid;
- unverified.

## Performance and reliability

Measure before optimizing when possible. Prioritize bottlenecks that materially affect user experience or resource consumption.

Use:
- bounded retries;
- timeouts;
- idempotency where needed;
- graceful degradation;
- caching with explicit invalidation strategy;
- lazy loading and code splitting for web applications where appropriate;
- image optimization and responsive delivery;
- structured logs, metrics, health checks, and traces for important production paths.

## Deployment and change safety

Before deployment, verify build artifacts, environment assumptions, secrets handling, migrations, health checks, rollback path, and smoke tests.

Never claim a deployment succeeded without a real verification result.

Separate local, staging, and production changes. Require explicit authorization before touching production or destructive infrastructure.

## Completion gate

Do not say “done” until every relevant acceptance criterion is satisfied or explicitly blocked.

Use this gate:

[ ] Requirements understood
[ ] Scope and constraints confirmed
[ ] Relevant project instructions read
[ ] Architecture/dependencies inspected
[ ] Implementation complete
[ ] Error paths handled
[ ] Security/privacy reviewed
[ ] Tests run
[ ] Browser/E2E validated when relevant
[ ] Performance reviewed when relevant
[ ] Accessibility reviewed when relevant
[ ] SEO reviewed when relevant
[ ] Build verified
[ ] Deployment verified when requested
[ ] Regression check passed
[ ] Remaining risks documented

## Progressive disclosure

For deeper work, read the relevant reference before acting:

- `references/architecture-and-planning.md` — requirements, decomposition, boundaries, and trade-offs.
- `references/agent-orchestration.md` — agents, skills, tool use, parallelism, and coordination.
- `references/web-application-quality.md` — UI, accessibility, performance, browser verification, SEO.
- `references/security-and-privacy.md` — threat modeling, auth, secrets, privacy, safe operations.
- `references/api-data-integrations.md` — APIs, databases, webhooks, contracts, data quality.
- `references/ai-engineering.md` — model routing, prompts, tools, memory, evaluation, MCP.
- `references/testing-and-release.md` — test strategy, quality gates, CI/CD, releases, rollback.
- `references/observability-reliability.md` — logging, metrics, tracing, retries, timeouts, incidents.

Read only the references relevant to the current task to control context usage.

