stack-briefing
Skill1 starsChanged 4 months agoMITView on GitHub
Detect a project's actual frontend/backend/database/infra stack and versions by reading lockfiles and config directly (not from memory or assumption), and produce a short briefing block other work in this session should treat as a hard constraint. Use before writing any non-trivial full-stack code in an unfamiliar repo, when switching between projects with different stacks, or when asked to confirm/check the stack/version before coding.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-flowSkill
- dev-testingSkill
- dry-and-corSkill
- electronSkill
- firebaseSkill
- flutterSkill
- google-authSkill
- html-cssSkill
- mysqlSkill
- nodejsSkill
- postgresSkill
- reactSkill
- sqliteSkill
- supabaseSkill
- tailwindSkill
- tursoSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Look for a frontend build (package.json with React/Vue/Svelte/Next/Nuxt), a backend service (Node/Express/Fastify/NestJS, …
- Very specific: line 20
If the repo is empty or greenfield, there is no stack to detect and the briefing becomes a recommendation instead: name the scaffold to …
- Distinctive: line 40
Never assume a stack matches a project you worked on earlier — re-detect every time.
- Distinctive: line 65
Treat this as a hard constraint for the rest of the session until the project's stack actually changes.
- Distinctive: line 70
Don't skip straight to implementation without this pass on an unfamiliar repo — a wrong version assumption compounds into every file …
- Distinctive: line 72
Don't invent a convention when the repo already has one, even an inconsistent one — match what's there.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Stack briefing
The inline version of fullstack-senior-dev's detection routine — for tools
or contexts that don't have subagent dispatch, run this directly in the main
conversation before writing full-stack code.
Step 1 — Confirm this is a full-stack web project
Look for a frontend build (package.json with React/Vue/Svelte/Next/Nuxt),
a backend service (Node/Express/Fastify/NestJS, Python/Django/FastAPI/Flask,
Ruby/Rails, Go), and a database (Postgres/MySQL/SQLite/MongoDB config, or an
ORM's schema/migration files). If it's not actually this kind of project,
say so and skip the rest.
If the repo is empty or greenfield, there is no stack to detect and the
briefing becomes a recommendation instead: name the scaffold to start from —
an established starter for the intended stack, or the framework's own
create-* tool — rather than assembling a skeleton by hand, which loses the
wiring conventions, build config, and dev-server setup a scaffold gets right
for free. State the choice and why, then treat it as the constraint the rest
of the work builds within.
Step 2 — Pin down real versions
- Frontend:
package.json— framework + version, bundler, UI library, state-management library, styling approach. - Backend: the ecosystem manifest (
package.json,requirements.txt/pyproject.toml,Gemfile,go.mod) — framework, language/runtime version, API style (REST/GraphQL/tRPC). - Database: engine, access layer (raw driver, ORM, query builder), migration approach.
- Infra:
Dockerfile/docker-compose.yml, CI config, deploy target hints (vercel.json,Procfile, IaC folder).
Never assume a stack matches a project you worked on earlier — re-detect every time.
Step 3 — Note existing conventions
Open one representative file per layer (a component, a route/controller, a schema/model) and note naming, folder layout, and how cross-cutting concerns (auth, error handling, validation) are already handled.
Step 4 — Output the briefing
STACK CONFIRMED:
Frontend: <framework> <version> — <state mgmt> — <styling approach>
Backend: <framework/language> <version> — <API style>
Database: <engine> — <access layer> — <migration approach>
Infra: <containerized? CI present? deploy target>
ARCHITECTURE: <folder layout, layering convention, where cross-cutting concerns live>
VERSION GUARDRAILS: <APIs/patterns unavailable or deprecated at these specific versions>
CONVENTIONS TO MATCH: <naming, file placement, error-handling, validation — one real example file per layer>Treat this as a hard constraint for the rest of the session until the project's stack actually changes.
What not to do
- Don't skip straight to implementation without this pass on an unfamiliar repo — a wrong version assumption compounds into every file touched after.
- Don't invent a convention when the repo already has one, even an inconsistent one — match what's there.
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
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.

