agentleFS
ilhankilicilhankilic/yaratai-skill/AGENTS.md

yaratai-skill

AGENTS.md1 starsChanged 8 months agoApache-2.0View on GitHub

Instructions for AI coding agents (Claude, Cursor, Copilot, Codex, Windsurf) working with SkillForge. SkillForge is a Docker-ready, stateless AI skill runtime with 51+ production skills. It exposes a REST API + web dashboard at http://localhost:9147. Skills are pure functions: JSON in → JSON out, no database, no state. Every skill follows the same contract and is auto-discovered at startup. When a user clones this repo, execute these steps immediately: Once running, the user has access to all 51+ skills via:…

  • Reads credentials
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When a user clones this repo, execute these steps immediately:

    line 11
  2. Very specific:

    Every skill is a BaseWorker subclass with this exact interface — never change it:

    line 89
  3. Distinctive:

    No database: no SQLite, Redis, PostgreSQL — skills are pure functions

    line 124
  4. Very specific:

    No global state: no mutable class/module variables, no print()

    line 125
  5. Distinctive:

    Type hints: every function parameter and return value

    line 127
  6. Distinctive:

    Docstrings: every class and public method

    line 128
  7. Distinctive:

    Tests: must run offline, mock all external services (Ollama, APIs)

    line 130
  8. Very specific:

    dev branch: all development — protected, changes via PR only

    line 135

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

AGENTS.md

Instructions for AI coding agents (Claude, Cursor, Copilot, Codex, Windsurf) working with SkillForge.

What is SkillForge?

SkillForge is a Docker-ready, stateless AI skill runtime with 51+ production skills. It exposes a REST API + web dashboard at http://localhost:9147. Skills are pure functions: JSON in → JSON out, no database, no state. Every skill follows the same contract and is auto-discovered at startup.

First Steps (Mandatory)

When a user clones this repo, execute these steps immediately:

cd yaratai-skill          # or wherever the repo was cloned
docker compose up -d       # Starts SkillForge API (port 9147) + Ollama (port 11434)
# Wait ~10s for startup, then verify:
curl http://localhost:9147/health
# → {"status":"healthy","version":"0.1.0","skills_loaded":51}

Once running, the user has access to all 51+ skills via:

  • Dashboard: http://localhost:9147 — browse, search, execute, sync skills
  • REST API: http://localhost:9147/api/skills — programmatic access
  • CLI: skillforge list, skillforge run <id> -i input.json

Architecture (Key Files)

skillforge/base.py          → BaseWorker, SkillInput, SkillOutput (immutable contract)
skillforge/registry.py      → discover_skills() auto-loads all worker.py files
skillforge/orchestrator.py  → run_pipeline() for multi-skill YAML pipelines
skillforge/sync.py          → sync_from_github(), validate_skill_directory()
skillforge/api/app.py       → FastAPI factory, creates the REST API + dashboard
skillforge/api/routes/      → health.py, skills.py, sync.py, panel.py
skillforge/nodes/           → local_node.py (Ollama), cloud_node.py (RunPod/GCP)
cli/main.py                 → Typer CLI: run, list, info, test, pipe, create
skills/<category>/<name>/   → Each skill: schema.json, worker.py, SKILL.md, test.py
skills/_template/           → Copy this to create a new skill
skills/community/           → Auto-synced from external GitHub repos
pipelines/*.yaml            → Multi-skill pipeline definitions

Using Skills (API Reference)

# List all skills (with optional filters)
GET  /api/skills
GET  /api/skills?category=data
GET  /api/skills?search=csv

# Get full skill schema + SKILL.md (ALWAYS read this before calling a skill)
GET  /api/skills/{skill_id}/info

# Execute a skill
POST /api/skills/{skill_id}/run
Content-Type: application/json
{"data": {"field": "value"}}

# Response shape (ALWAYS this format):
{"success": true/false, "data": {...}, "error": "", "metadata": {...}}

Common Skill Examples

# Convert JSON to CSV
POST /api/skills/data.json-to-csv/run
{"data": {"records": [{"name": "Alice", "age": 30}]}}

# Generate a Dockerfile
POST /api/skills/devops.dockerfile-gen/run
{"data": {"language": "python", "framework": "fastapi"}}

# Build a regex pattern
POST /api/skills/code.regex-builder/run
{"data": {"description": "match email addresses", "test_strings": ["user@example.com"]}}

# Generate pytest test cases
POST /api/skills/code.test-gen/run
{"data": {"source_code": "def add(a, b): return a + b", "language": "python"}}

# Sync community skills from GitHub
POST /api/sync/github
{"repo_url": "https://github.com/ilhankilic/yaratai-skill", "branch": "main"}

Skill Contract (Immutable)

Every skill is a BaseWorker subclass with this exact interface — never change it:

from skillforge.base import BaseWorker, SkillInput, SkillOutput

class Worker(BaseWorker):
    skill_id = "category.skill-name"   # unique, dot-separated
    version  = "1.0.0"                 # semver

    def run(self, input: SkillInput) -> SkillOutput:
        # input.data is a dict with skill-specific fields
        # MUST return SkillOutput, NEVER raise exceptions
        return SkillOutput(success=True, data={...}, metadata={...})
  • SkillInput: {data: dict, metadata: dict}
  • SkillOutput: {success: bool, data: dict, error: str, metadata: dict}

Creating a New Skill

Order matters: schema.json → worker.py → SKILL.md → test.py

Each skill is a folder skills/<category>/<kebab-name>/ with exactly 4 files:

FilePurpose
schema.jsonJSON Schema for input/output — write this FIRST
worker.pyPython worker — class Worker(BaseWorker) with run() method
SKILL.mdDocumentation — agents and humans read this
test.pyPytest tests — minimum 3: happy path, edge case, error case

Copy skills/_template/ as a starting point. See STANDARD.md for all rules.

Rules (Non-Negotiable)

  • No database: no SQLite, Redis, PostgreSQL — skills are pure functions
  • No global state: no mutable class/module variables, no print()
  • No exceptions: return SkillOutput(success=False, error="...") instead
  • Type hints: every function parameter and return value
  • Docstrings: every class and public method
  • Config: via schema.json fields or env vars — no hardcoded values
  • Tests: must run offline, mock all external services (Ollama, APIs)

Git Workflow

  • master branch: production/stable, default branch for users — protected, merge from dev only
  • dev branch: all development — protected, changes via PR only
  • External contributors: fork → code on dev → PR to dev → maintainer reviews and merges
  • Commit messages: feat(skills): add category.skill-name, fix: description, docs: description
  • Before pushing: pytest — all 301+ tests must pass
git checkout dev
# make changes...
pytest
git add -A && git commit -m "feat(skills): add data.new-skill"
git push origin dev

Environment Variables

VariableDefaultUsed by
OLLAMA_BASE_URLhttp://ollama:11434 (Docker) / http://localhost:11434 (local)AI skills
OLLAMA_MODELgemma3:4bAI skills
OLLAMA_TIMEOUT120AI skills
RUNPOD_API_KEY—Cloud node
ANTHROPIC_API_KEY—skillforge create
SKILLFORGE_ENVdocker (in container)Runtime detection

Testing

pytest                                          # All tests
pytest tests/ -v                                # Core + API tests
pytest skills/data/json-to-csv/test.py -v       # Single skill
pytest --cov=skillforge --cov-report=term-missing  # With coverage

Reference

ConceptFileKey symbol
Worker contractskillforge/base.pyBaseWorker, SkillInput, SkillOutput
Skill discoveryskillforge/registry.pydiscover_skills(), load_skill()
Pipeline engineskillforge/orchestrator.pyrun_pipeline(), PipelineDefinition
REST APIskillforge/api/app.pycreate_app()
Sync engineskillforge/sync.pysync_from_github(), validate_skill_directory()
Dashboardskillforge/api/templates/index.htmlSingle-page web UI
CLIcli/main.pyrun, list, info, test, pipe, create
Skill standardSTANDARD.md§1-§8: all rules
Skill templateskills/_template/Copy to create new skills
Docker setupdocker-compose.ymlskillforge:9147 + ollama:11434

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.