Skip to content
Back to skills

Senior Fullstack

BSecurity

Scaffolds Next.js, FastAPI+React, MERN or Django+React projects and statically scans a codebase for secrets, injection patterns, vulnerable dependencies, missing tests and oversized functions, with a fix per finding. Use when starting a new fullstack app, doing a quality pass before a review or handover, or choosing a fullstack stack.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 29, 2026
ai-agentstypescriptpythongobashsqlreactnextjsnodenodejsexpress

Works with

  • cli
  • api

Security analysis

B77/100
  • highContains patterns that look like hardcoded API keys
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill senior-fullstack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Senior Fullstack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Senior Fullstack
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-senior-fullstack/badge)](https://www.skillsdirectory.com/skills/borghei-senior-fullstack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: senior-fullstack
description: >
  Scaffolds Next.js, FastAPI+React, MERN or Django+React projects and
  statically scans a codebase for secrets, injection patterns, vulnerable
  dependencies, missing tests and oversized functions, with a fix per finding.
  Use when starting a new fullstack app, doing a quality pass before a review
  or handover, or choosing a fullstack stack.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: engineering
  domain: fullstack
  updated: 2026-11-08
  tags: [react, nodejs, databases, api-design, system-architecture]
---
# Senior Fullstack

Fullstack development skill that scaffolds production-ready project structures (Next.js, FastAPI+React, MERN, Django+React) and runs static code quality analysis across security, complexity, dependency health, test coverage, and documentation — paired with reference guides for architecture patterns, development workflows, and stack selection.

## Core Capabilities

- **Project scaffolding** — generate complete Next.js, FastAPI+React, MERN, or Django+React structures with TypeScript, Docker/docker-compose, env templates, and package configs.
- **Code quality analysis** — static scan for security issues, cyclomatic complexity, dependency CVEs, test coverage estimate, and documentation scoring, with a quoted line and a fix per finding.
- **Stack selection** — decision matrix and trade-off guides for frameworks, databases, ORMs, auth, and deployment platforms by use case (MVP, SaaS, Enterprise).
- **Architecture patterns** — frontend component design, backend clean architecture, API design (REST/GraphQL), caching, and authentication.
- **Lifecycle workflows** — local setup, git, CI/CD, testing, code review, deployment, and observability.

## When to Use

- Starting a new web app that needs both a frontend and an API (Next.js alone, FastAPI or Django + React, MERN).
- A quick quality pass over an existing codebase before a review or handover.
- Choosing a fullstack stack for an MVP, SaaS or internal tool.

Boundaries: frontend-only work (components, Next.js performance, bundle size) belongs to
`senior-frontend`; a weighted, evidence-backed comparison of technologies belongs to
`tech-stack-evaluator`; system-level architecture decisions belong to `senior-architect`.

## Clarify First

Before scaffolding, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Stack:** Next.js / FastAPI+React / MERN / Django+React (selects the scaffold template and entire file tree).
- **App name & output path:** where the project is written (`project_scaffolder` positional args).
- **Task:** scaffold a new project vs analyze an existing codebase's quality (selects `project_scaffolder` vs `code_quality_analyzer`).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Tools Overview

| Tool | Purpose |
|------|---------|
| `scripts/project_scaffolder.py` | Scaffold `nextjs`, `fastapi-react`, `mern` or `django-react` with Docker, env templates and per-service package configs. `--output <dir>` is required; `--list-templates`; `--format text\|json` |
| `scripts/code_quality_analyzer.py` | Static scan: hardcoded secrets, string-built SQL, unsafe HTML, http URLs, debug code, Python function complexity/length, large files, vulnerable pinned dependencies, missing tests/README. Each finding quotes the line and gives a fix. `--format text\|json`, `--verbose`, `--output report.json` |

Real run (the sample project shipped in `assets/`):

```bash
python3 scripts/code_quality_analyzer.py assets/flawed_project
```

```
Read 2 source files, 16 lines (2 source, 0 test); manifests: npm
Findings: critical 1, high 3, medium 3, low 3, info 1

[CRITICAL] hardcoded_secret  src/app.py:1
  found: API_KEY = "sk_live_[REDACTED]"
  fix:   Move the value to an environment variable (process.env.X / os.environ['X']), rotate it, ...
...
FIX 7 issues
```

Scaffold example: `python3 scripts/project_scaffolder.py fastapi-react my-app --output ./projects`

### Exit codes

| Code | Meaning |
|------|---------|
| `0` | Scaffolder: written. Analyzer: no critical/high/medium findings (`PASS`) |
| `1` | Analyzer only: critical, high or medium findings (`FIX n issues`); low/info are shown with `--verbose` and do not fail the run |
| `2` | Unusable input: unknown template, invalid project name (path separators are rejected), target folder exists, missing `--output`, unwritable path, analysis path missing, not a directory, or no source files under it |

There is no overall score or grade: the analyzer reports findings, not a number.
Limits: "tests" are test files found by name, not measured coverage (use the test
runner's report); the dependency check covers only four packages (use `npm audit` /
`pip-audit`); complexity and length are measured for Python only (McCabe's limit of 10;
length and file-size limits are internal heuristics).

The scaffolds target Next.js 16, React 19, Tailwind CSS v4, Vite 8, Express 5, Node 22,
Python 3.12 and PostgreSQL 17 / MongoDB 7. Most generated files are working starting points;
some (database clients, auth) are stubs to fill in. Run `npm install && npm run build` (and
the backend's install and migrations) once before handing a scaffold over.

## Workflow

1. Pick the template from the Clarify First answers and scaffold into the target folder.
2. Install and build every service once; fix anything the build reports before writing features.
3. Run `code_quality_analyzer.py` on the result and on each later milestone; act on critical and high findings first.
4. Done when every service builds and starts with `docker compose up`, the health endpoint answers, and the analyzer exits 0.

## References

Load the reference that matches the task — keep this file lean and pull detail on demand:

- **[references/tooling-workflows-and-quality.md](references/tooling-workflows-and-quality.md)** — full tool docs (templates, flags, sample output, output formats), the three end-to-end workflows, the stack decision matrix / common issues, the troubleshooting table, and the success-criteria bar. Read when running the tools in depth or checking generated work before shipping.
- **[references/architecture_patterns.md](references/architecture_patterns.md)** — frontend component architecture, backend clean architecture / repository pattern, REST & GraphQL API design, database patterns, caching strategies, and authentication architecture. Read when designing or reviewing system structure.
- **[references/development_workflows.md](references/development_workflows.md)** — local dev setup, git workflows, CI/CD pipelines, testing strategies, code review process, deployment strategies, and observability. Read when standing up the development lifecycle.
- **[references/tech_stack_guide.md](references/tech_stack_guide.md)** — frontend/backend framework comparisons, database selection, ORMs, auth solutions, deployment platforms, and stack recommendations by use case. Read when choosing a stack.

## Scope & Limitations

**What this skill covers:**
- Project scaffolding for Next.js, FastAPI+React, MERN, and Django+React stacks with Docker, TypeScript, and environment configuration
- Static code quality analysis including complexity checks (Python), security pattern detection, dependency checks against a small advisory list, test-file presence and README checks
- Stack selection guidance via the tech stack decision matrix and reference guides
- Fullstack architecture patterns (frontend component design, backend clean architecture, API design, caching, auth)

**What this skill does NOT cover:**
- Runtime performance profiling, load testing, or APM instrumentation -- see `senior-devops` for observability tooling
- Infrastructure provisioning, Terraform/Pulumi, or cloud deployment automation -- see `aws-solution-architect` and `senior-devops`
- Comprehensive CVE scanning against live vulnerability databases -- use `npm audit`, `pip-audit`, or `senior-secops` for deep security analysis
- Mobile or native desktop application scaffolding -- this skill targets web-based fullstack architectures only

## Anti-Patterns

### Shipping the Scaffold's Defaults
**Mistake:** Deploying with the generated `.env.example` secrets, the dev-server Docker command and open CORS.
**Why it happens:** The scaffold runs, so it feels production-ready.
**Instead:** Treat it as a dev setup. Replace secrets, switch containers to production commands, lock CORS to known origins, and add health checks before deploying.

### One Database Model Shared Across Layers
**Mistake:** Returning ORM models straight from API handlers.
**Why it happens:** It saves a mapping layer.
**Instead:** Keep request/response schemas (Pydantic, Zod, DRF serializers) separate from persistence models, so a column change does not silently change the public API or leak fields like password hashes.

### Treating a Clean Scan as Proof
**Mistake:** Reporting a PASS as "the codebase is healthy".
**Why it happens:** One verdict line is easy to quote.
**Instead:** The analyzer reads code statically. Pair it with the real test suite's coverage, `npm audit` / `pip-audit`, and a human review of the riskiest modules.

## Files

| File | Purpose |
|------|---------|
| `scripts/project_scaffolder.py` | Fullstack project scaffolder for four stacks |
| `scripts/code_quality_analyzer.py` | Static code quality scan |
| `references/*.md` | Tooling and quality workflows, architecture patterns, development workflows, stack guide |

Files in this skill

  • SKILL.md15.5 KB
  • references/architecture_patterns.md12.7 KB
  • references/development_workflows.md16.4 KB
  • references/tech_stack_guide.md13.8 KB
  • scripts/code_quality_analyzer.py21.9 KB
  • scripts/project_scaffolder.py26.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.