/detect-stack
Detect a repository's languages, frameworks, package manager, test and lint tooling, database, CI and deployment setup with file-level evidence and confidence, then map it to matching ForgeKit packs. Read-only.
What it does
Detect a repository's languages, frameworks, package manager, test and lint tooling, database, CI and deployment setup with file-level evidence and confidence, then map it to matching ForgeKit packs. Read-only.
- Category
- coreanalysisonboarding
- Platforms
- generic
- Capabilities
- analysis
Example tasks
- /detect-stack
- /detect-stack packages/mobile
- /detect-stack which test runner and database does this repo use?
Works with
Related skills
Recommended alongside
Permissions summary
Files
Reads files only
Shell
Runs a limited set of commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/commands/<id>.md |
| OpenAI Codex | Adapter | .codex/prompts/<id>.md |
| Cursor | Native | .cursor/commands/<id>.md |
| VS Code (Copilot) | Native | .github/prompts/<id>.prompt.md |
| Generic markdown | Adapter | docs/forgekit/commands/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
Full command (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Detect the technology stack of this repository. Scope or question from the user (empty means the whole repo): $ARGUMENTS
This command is read-only. Every claim needs evidence (a file path and the relevant key); never infer a version or tool from memory.
- CLI cross-check. If
command -v forgesucceeds, runforge detectand keep its output to compare with your own findings. If it is not installed, say so and continue manually. - Map the tree. Use
git ls-files(or Glob when not a git repo) to find manifests at every level:package.json,pnpm-workspace.yaml,turbo.json,nx.json,pyproject.toml,requirements*.txt,go.mod,Cargo.toml,build.gradle(.kts),settings.gradle(.kts),Package.swift,*.xcodeproj,pubspec.yaml,pom.xml,Gemfile,composer.json,*.csproj,ProjectSettings/ProjectVersion.txt. - Read, do not guess. Open each manifest and lockfile and extract: language and runtime version (
engines,.nvmrc,.tool-versions,godirective,requires-python,compileSdk), frameworks, package manager (from lockfile andpackageManager), monorepo tool, test runner, linter/formatter/type checker config, ORM or migration tool, database and cache (docker-compose services, connection env var names in.env.example), CI (.github/workflows,.gitlab-ci.yml), containers, deploy targets (vercel.json,fly.toml, Terraform, Helm). - Find the real commands for install, build, test, lint, typecheck, and dev from scripts, Makefile, or CI. Mark each as
declared(found in a file) and never asverifiedunless you executed it. - Rate confidence per row: high (declared in a manifest and used in code), medium (declared only), low (inferred from file extensions or folder names).
- Recommend ForgeKit packs for the detected stack, citing which row justifies each; call out stacks you could not classify instead of forcing a match.
Do not modify any file, install dependencies, or run builds. Allowed shell: command -v, forge detect, git ls-files, ls.
Output: a Markdown table Area | Finding | Evidence | Confidence, then Commands (declared), Monorepo layout (package -> stack, if applicable), Recommended ForgeKit packs, and Unknowns / conflicts (for example two lockfiles, or a CI Node version that differs from .nvmrc).
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — /detect-stack
1.0.0
- Initial release.