agentleFS
sordi-aisordi-ai/skill-everything/skills/domain-template/SKILL.md

domain-template

Skill20 starsChanged 7 months agoMITView on GitHub

Apply when documenting project-specific knowledge. Template for ADRs, naming conventions, business rules, and tech-stack quirks.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Delete empty sections. Concrete > comprehensive.

    line 25

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

Sub-Skill: Domain Knowledge Template

<!-- target: ~850 tokens (empty template — grows when filled in for your project) -->

Purpose: Structured template for capturing company- or project-specific knowledge that no public model can know — architecture decisions, naming conventions, business rules.


Instructions: Fill Out This Template

Copy this file to skills/<project-name>/SKILL.md and fill in all sections. Delete empty sections. Concrete > comprehensive.


Project Overview

Project name:    [e.g. "OrderFlow"]
Technology:      [e.g. "Node.js 20, PostgreSQL 15, React 18"]
Deployment:      [e.g. "AWS ECS, GitHub Actions CI/CD"]
Team size:       [e.g. "4 backend, 2 frontend"]
Main repo:       [e.g. "github.com/acme/orderflow"]

Architecture Decision Records (ADRs)

ADR-001: [Title]

  • Date: YYYY-MM-DD
  • Status: Accepted / Deprecated / Superseded by ADR-XXX
  • Context: Why did a decision need to be made?
  • Decision: What was decided?
  • Consequences: What changes as a result?

Naming Conventions

ContextConventionExample
Database tablessnake_case, pluralorder_items
API endpointskebab-case, plural/api/order-items
TypeScript interfacesPascalCase, no I prefixOrderItem
Environment variablesSCREAMING_SNAKE_CASEDATABASE_URL
React componentsPascalCaseOrderItemList

Business Rules

These rules are not documented in the code — only here.

  1. [Rule name]: [Description]. Example: Orders under $10 have no shipping costs.
  2. [Rule name]: [Description].

Known Pitfalls

  1. [Pitfall]: [What happens and why]. Example: The users table has two ID fields: id (internal) and external_id (customer number). Never confuse them.
  2. [Pitfall]: [What happens and why].

External Systems & Integrations

SystemPurposeAuth MethodContact for Issues
StripePaymentsAPI key in STRIPE_SECRET_KEYpayments@acme.com
SendGridEmailsAPI key in SENDGRID_API_KEYdevops@acme.com

Glossary

TermMeaning
OrderA confirmed order (status >= CONFIRMED)
CartAn unconfirmed order (status = DRAFT)

Agent Directives

Specific instructions for how the agent should work in this project.

  1. [Directive]: [Description]. Example: Never delete files without explicit user confirmation.
  2. [Directive]: [Description]. Example: Always output the full file path with every change.
  3. [Directive]: [Description]. Example: Always use English in commit messages.

Tech Stack Quirks

Stack-specific gotchas not found in the documentation — only learned through experience.

  1. [Quirk name]: [What happens and why]. Example: Prisma Client must be regenerated with npx prisma generate after schema changes — a simple npm install is not enough.
  2. [Quirk name]: [What happens and why]. Example: The Redis connection pool in production has max 10 connections — with more than 10 parallel requests, requests get dropped.

Why This Sub-Skill Earns Stars

Without domain knowledge, the agent makes plausible but wrong assumptions about naming, business rules, and architecture. With this template filled out once → the agent knows the project like a team member.

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.