agentleFS
parvez3019parvez3019/ai-coding-microservices-skills/skills/stack-profile/SKILL.md

stack-profile

Skill1 starsChanged 12 days agoMITView on GitHub

Record this project's technology choices once, so every other skill speaks the team's actual language instead of generic pattern names. Detects the language, framework, datastore, broker, test tooling, contract tooling, secret manager, and deployment platform from the repository, confirms the gaps by interview, and writes .msskills/stack.md plus a starter .msskills/config.yaml. Use on first setup in a repository, after adopting a new framework or broker, when guidance from other skills feels generic, or when the user says 'set up', 'stack profile', 'configure the skills', or 'onboard this repo'. Run this before the workflows — it is what turns 'add a circuit breaker' into the project's own library and idiom.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every other skill in this library deliberately names patterns rather than libraries: "circuit breaker", not a specific implementation.

    line 9
  2. Distinctive:

    Read the repository before asking anything.

    line 21
  3. Distinctive:

    Look for, in this order:

    line 24
  4. Very specific:

    If the team already has written standards, they outrank this library's defaults, and config.yaml should point at them.

    line 39
  5. Very specific:

    Ask no more than six questions.

    line 68
  6. Very specific:

    Write .msskills/stack.md using the template.

    line 98
  7. Very specific:

    Only include keys for documents that exist.

    line 125
  8. Very specific:

    Never invent: If a library was not found and the user did not name one, write unknown.

    line 144
  9. Distinctive:

    Re-running is normal: Read the existing profile, show what changed, and preserve anything the user typed by hand.

    line 146

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

Stack Profile

Every other skill in this library deliberately names patterns rather than libraries: "circuit breaker", not a specific implementation. That keeps the guidance portable, and it makes the advice vague until someone says what this project actually uses.

This skill closes that gap once. It writes .msskills/stack.md, which every principle reads in step 5 of its Config Resolution, and a starter .msskills/config.yaml pointing at any house standards the team already has.

Workflow

Step 1 — Detect what you can

Read the repository before asking anything. A question whose answer is sitting in a manifest file wastes the user's time and signals you did not look.

Look for, in this order:

  1. Build and dependency manifests — pom.xml, build.gradle*, package.json, go.mod, *.csproj, Cargo.toml, pyproject.toml, requirements.txt, Gemfile. These give the language, the framework, and most libraries.
  2. Lockfiles — confirm actual versions rather than declared ranges.
  3. Container and deployment files — Dockerfile, docker-compose*, *.yaml under k8s/, helm/, .github/workflows/, Terraform. These give the platform, the datastore, and the broker.
  4. Configuration — application*.yml, appsettings*.json, .env.example, config packages. These give the config mechanism and often the secret manager.
  5. Existing tests — the framework, the assertion style, whether containers or contract tooling are already in use, and the naming convention.
  6. Existing architecture — the package or module layout, any architecture tests, any specification files (openapi.*, asyncapi.*, *.proto).
  7. Existing standards — a CONTRIBUTING.md, ARCHITECTURE.md, docs/, or an ADR directory. If the team already has written standards, they outrank this library's defaults, and config.yaml should point at them.

An empty or greenfield repository is a valid answer. Say so and move to the interview.

Step 2 — Present what you found, then ask only for the gaps

Show the detected profile as a compact table with a confidence marker, then ask about what is genuinely missing or ambiguous. Batch the questions into one message — see collaborative-judgment on batching.

Detected from the repository:

| Aspect | Value | Source |
|---|---|---|
| Language | Java 21 | pom.xml |
| Framework | Spring Boot 3.4 | pom.xml |
| Datastore | PostgreSQL 16 | docker-compose.yml, Flyway migrations |
| Test framework | JUnit 5 + AssertJ + Testcontainers | pom.xml, src/test |
| Resilience | Resilience4j | pom.xml |

Not found — could you confirm?
1. Message broker: none detected. Is this service synchronous only, or is a broker planned?
2. Contract testing: nothing detected. Is there a broker for contracts, or is this the first?
3. Secret management: where do credentials come from in production?
4. Do you already have written architecture or testing standards I should point the skills at?

Ask no more than six questions. If the user does not know an answer, record it as unknown and move on — an incomplete profile is far better than an interview nobody finishes.

Step 3 — Cover the aspects that matter

The profile is only useful for what other skills actually consult. Aim to fill these; leave the rest blank rather than padding.

AspectRead by
Language, version, idiom notesevery skill
Framework and DI styleclean-architecture
Module and package layout, architecture-test toolclean-architecture, service-boundaries
Datastore, ORM/query style, migration tooldata-access
CQRS level, read models, consistencycqrs-and-consistency
Type-system idiom for domain typesdomain-modelling, idempotency-and-immutability
API style: REST, GraphQL, gRPC, pushapi-protocols
Broker, schema registry and compatibility modeapi-contracts, resilience-patterns
Specification format, error contract, event schemasapi-contracts
Port and adapter conventions, service meshinfrastructure-adapters
Resilience libraryresilience-patterns
Test framework, assertions, container and stub toolingtest-strategy
Contract tooling and brokercontract-testing
Config mechanism, secret manager, flag systemconfig-and-dependencies, secure-service
Auth model between servicessecure-service
Package manager, lockfile, update automationconfig-and-dependencies
CI platform, deployment targetworkflows

Step 4 — Write the files

Write .msskills/stack.md using the template. Keep it factual: what is used, not what is recommended. Mark anything inferred rather than confirmed.

Then write .msskills/config.yaml if it does not exist:

# Points skills at this project's own standards. Delete any key you have no document for —
# a key with no file produces a warning on every run.
paths:
  architecture: docs/standards/architecture.md   # clean-architecture
  testing: docs/standards/testing.md             # test-strategy
  # api:          # api-contracts
  # protocols:    # api-protocols
  # security:     # secure-service
  # boundaries:   # service-boundaries
  # domain:       # domain-modelling
  # persistence:  # data-access
  # consistency:  # cqrs-and-consistency
  # adapters:     # infrastructure-adapters
  # resilience:   # resilience-patterns
  # idempotency:  # idempotency-and-immutability
  # contracts:    # contract-testing
  # config:       # config-and-dependencies
  # judgment:     # collaborative-judgment
  # design:       # design-first

Only include keys for documents that exist. A custom document needs mode: overlay (add to the defaults) or mode: override (replace them) in its own frontmatter.

Step 5 — Confirm and hand off

Show the written profile, say which skills it will change the behaviour of, and name the concrete difference:

Written .msskills/stack.md. resilience-patterns will now say Resilience4j rather than "a circuit breaker library", and test-strategy will assume Testcontainers for component tests. Contract testing is recorded as none — when you adopt a tool, rerun this skill.

Rules

  • Detect before asking. Anything discoverable from the repository must not be a question.
  • Record, do not recommend. This skill captures what the project uses. If something is missing — no contract testing, no secret manager — note it as absent. Suggesting a tool here would put a recommendation into a file that ten other skills treat as fact.
  • Mark confidence. Distinguish confirmed by the user, read from a file, and inferred.
  • Never invent. If a library was not found and the user did not name one, write unknown. A guessed library name propagates into generated code.
  • Re-running is normal. Read the existing profile, show what changed, and preserve anything the user typed by hand.
  • Keep it short. This file is read by every skill. Facts and versions, not prose.

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.