agentleFS
fernandoxavier02fernandoxavier02/engineering-context/skills/detect-stack/SKILL.md

detect-stack

Skill0 starsChanged 7 months agoMITView on GitHub

This skill should be used when the user asks to 'detect project stack', 'identify tech stack', 'what language is this project', 'analyze project technology', or 'what framework does this use'. Auto-detects language, framework, test framework, build tools, and architecture style from project files.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. JordanCoin/codingskills★ 10same name
    2. qyndex/claude-init★ 2same name
    3. roedyrustam/doku-gemini-mcp★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for indicator files (run in parallel):

    line 12
  2. Distinctive:

    Use Grep to search for framework imports:

    line 25
  3. Very specific:

    Check for CLAUDE.md, .claude/rules/*.md, .kiro/steering/*.md, docs/.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Detect Project Stack

Auto-detect the project's technology stack by scanning project files.

Step 1: Language Detection

Check for indicator files (run in parallel):

FileLanguage
pyproject.toml, setup.py, requirements.txtPython
package.json, tsconfig.jsonTypeScript/JavaScript
go.modGo
Cargo.tomlRust
pom.xml, build.gradleJava
Gemfile, *.gemspecRuby

Step 2: Framework Detection

Use Grep to search for framework imports:

PatternFramework
from fastapi or import fastapiFastAPI
from flaskFlask
from djangoDjango
next.configNext.js
import express or require("express")Express
Rails in GemfileRails

Step 3: Test Framework Detection

PatternFramework
import pytest or [pytest] in pyproject.tomlpytest
import unittestunittest
describe( or test( in JS filesJest/Vitest
func Test in Go filesgo test
RSpec.describeRSpec

Step 4: Build and Lint Commands

Detect from package.json scripts, Makefile, pyproject.toml tool configs, or Cargo.toml.

Step 5: Existing Context

Check for CLAUDE.md, .claude/rules/*.md, .kiro/steering/*.md, docs/.

Step 6: Architecture Style

Scan directory structure:

PatternStyle
src/core/, src/domain/, src/usecases/Clean Architecture
models/, views/, controllers/MVC
src/domain/, src/ports/, src/adapters/Hexagonal
src/features/*/Vertical Slices
app/, lib/, internal/, pkg/Go Standard

Output Format

PROJECT_PROFILE:
  name: [project name]
  language: [Python | TypeScript | Go | Rust | Ruby | Java | Mixed]
  framework: [name or None]
  test_framework: [name or None]
  build_command: [command or None]
  test_command: [command or None]
  lint_command: [command or None]
  layers: [list of detected layers]
  entry_points: [list of entry points]
  architecture_style: [Clean | MVC | Hexagonal | Layered | Vertical Slices | Unknown]
  has_claude_md: [true | false]
  existing_rules: [count]

Utility Script

For automated detection, execute scripts/detect.py in the project root. The script outputs a PROJECT_PROFILE YAML to stdout.

Integration

The PROJECT_PROFILE feeds into map-architecture, generate-rules, and validate-context.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.