agentleFS
pratikxpandapratikxpanda/agentskills-sdk/.github/copilot-instructions.md

agentskills-sdk

Copilot instructions24 starsChanged 2 months agoMITView on GitHub

Poetry monorepo. Ten packages, versioned and released together. Planning lives in docs/ROADMAP.md, per-milestone specs in docs/issues/, settled decisions in docs/adr/. Never commit to main. For every unit of work: The maintainer merges pull requests manually. Do not create, update, or comment on issues or pull requests, and do not use the gh CLI for that. After a merge, sync main and cut a fresh branch for the next item. One roadmap item — or one tightly coupled cluster — per…

  • Reads credentials
  • Commits and pushes

The file

We split this copilot-instructions.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never commit to main. For every unit of work:

    line 23
  2. Very specific:

    Every package ships py.typed.

    line 77
  3. Very specific:

    Dependency ceilings need evidence: Check the dependency's real requires_python and classifiers on PyPI before adding or trusting an upper …

    line 110
  4. Very specific:

    PowerShell has no heredoc: Use repeated -m flags for commit messages.

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

Working in this repository

Poetry monorepo. Ten packages, versioned and released together.

PathPackage
packages/core/agentskills-coreRegistry, SkillProvider ABC, spec validation. Only dependency is pyyaml.
packages/adapters/agentskills-adaptersImport common agent instruction formats as native skills
packages/providers/agentskills-fsLocal filesystem provider
packages/providers/agentskills-httpStatic HTTP / CDN provider
packages/integrations/agentskills-langchainLangChain tools
packages/integrations/agentskills-agentframeworkMicrosoft Agent Framework context provider
packages/integrations/agentskills-mcp-serverMCP server + Agent Framework MCP bridge
packages/retrieval/agentskills-retrievalQuery-time skill selection: BM25 and embedding rankers
packages/tools/agentskills-toolsagentskills command: init, validate, lint, inspect, serve
packages/testing/agentskills-testingProvider conformance suite, InMemorySkillProvider, pytest fixtures

Planning lives in docs/ROADMAP.md, per-milestone specs in docs/issues/, settled decisions in docs/adr/.

Branch workflow

Never commit to main. For every unit of work:

git checkout main
git pull --prune
git checkout -b <type>/<slug>      # fix/ feat/ perf/ docs/ chore/
# implement, test, lint
git push -u origin <branch>

The maintainer merges pull requests manually. Do not create, update, or comment on issues or pull requests, and do not use the gh CLI for that. After a merge, sync main and cut a fresh branch for the next item.

One roadmap item — or one tightly coupled cluster — per branch. If scope drifts, rename the branch or squash-merge under a title that matches what actually landed.

Labels

Releases are built with generate_release_notes: true, which groups merged pull requests by the label map in .github/release.yml. The label is the only input — the branch prefix and commit message are ignored. An unlabelled pull request lands under "Other Changes", which is where most of 0.3.0 ended up.

Branch prefixLabel to assignRelease-notes section
feat/enhancement or featureFeatures
fix/bug or fixBug Fixes
docs/documentationDocumentation
CI, workflows, release toolingci or automationCI/CD
perf/, chore/—Other Changes

Label the pull request before merging; adding it afterwards does not change notes that have already been generated. Adding a category means editing .github/release.yml and creating the label in the repository — a label used in that file but absent from the repository silently matches nothing.

Commands

poetry install                                    # local install/check loop
# this laptop cannot reach PyPI file hosting directly; run poetry lock on a networked machine
python -m pytest packages -q --no-header          # baseline: 1403 passed, 7 skipped
python -m ruff check packages/ examples/       # CI lints these two paths only
python -m ruff format --check packages/ examples/
python scripts/check_declared_dependencies.py     # a package must declare what it imports

scripts/dev.py check also runs a mypy step, but mypy is not currently installed — that task fails for reasons unrelated to your change.

Conventions

  • Type hints on all public functions; Google-style docstrings on public APIs.
  • Every package ships py.typed; keep the marker intact.
  • Comments explain what the code cannot show on its own. One line, not a paragraph.
  • Package READMEs are used verbatim as the PyPI long_description, so every relative link in them is broken on PyPI. Use absolute https://github.com/... URLs.

Traps worth knowing

  • A new package must be registered in eight places. Root pyproject.toml (path dependency, [tool.coverage.run] source_pkgs, [tool.ruff.lint.isort] known-first-party), scripts/dev.py COVERAGE_FLOORS, both bump-version scripts, scripts/check_release_version.py, and the build loop plus a publish step in .github/workflows/publish.yml. Miss the last one and the package silently never ships. scripts/check_declared_dependencies.py has its own list too, so nine.
  • A package can import what it never declared and nothing will notice, because every package is installed into one shared virtualenv here. agentskills-tools imported yaml without declaring pyyaml for a whole milestone, riding on the copy agentskills-core pulled in. scripts/check_declared_dependencies.py runs in the lint job now; an import meant to stay optional belongs inside a function or behind except ImportError.
  • A package with a pytest11 entry point is invisible to pytest --cov. Entry-point plugins are imported before pytest-cov starts measuring, so the package reports 0% and drags everything it imports down with it. scripts/dev.py test:cov runs coverage run -m pytest for this reason; do not "simplify" it back.
  • Constructing an httpx.AsyncClient costs ~0.17s (TLS context), which is why agentskills-http's tests dominate the suite runtime. Share one module-scoped client when adding tests there — respx intercepts before it binds to an event loop.
  • poetry.lock hides upstream breaking changes. Locked installs kept CI green while the published packages were broken for every new user. The advisory test-unlocked CI job resolves without the lock; when it fails, the fix belongs in a version constraint, not in the job.
  • This laptop cannot reach PyPI file hosting directly. Dependency changes that require poetry lock must be resolved on a networked machine or CI runner. If the code change is limited to path dependencies in this monorepo, update those lock entries carefully and verify with poetry check --lock and poetry install --dry-run.
  • Dependency ceilings need evidence. Check the dependency's real requires_python and classifiers on PyPI before adding or trusting an upper bound.
  • The local venv holds packages that poetry.lock does not. tiktoken is one. Anything imported optionally will therefore behave differently here and in CI, so a test that cares must force the branch with monkeypatch.setitem(sys.modules, ...) rather than rely on what happens to be importable.
  • Dependabot mangles the version comment on action pins. # v4.37.4.4.37.42.4.37.4 has appeared twice. The SHA is right and the comment is not, so read it as decoration and confirm with git ls-remote --tags <repo> 'refs/tags/vX.Y.Z^{}' — annotated tags, which github/codeql-action uses, need the ^{} or you compare against the tag object.
  • codeql-action/init and /analyze must be pinned to the same version. A mismatch fails the scan with "Loaded a configuration file for version X, but running version Y". Dependabot raises one PR per sub-action, so merging either alone breaks CodeQL until the other lands; dependabot.yml now groups them under codeql-action to stop that.
  • A 200 response does not mean a badge rendered. shields.io returns 200 with the words "rate limited by upstream service" drawn into the SVG. Inspect the rendered text.
  • A GITHUB_TOKEN-created event never triggers another workflow. publish.yml creates the GitHub Release, so a release: trigger anywhere else is dead code — the versioned docs deploy sat unreachable through two releases. docs.yml chains off workflow_run of Publish instead. The exceptions are workflow_dispatch and repository_dispatch.
  • publish.yml triggers on v*.*.*, not v*. actions/validate is advertised as @v1, and moving that tag used to start a publish run that failed the tag guard.
  • An optional provider capability is a flag plus a raising default, never an empty return. See ADR 0002: supports_resource_listing / supports_discovery are plain attributes, not ClassVar, so an instance can decide at construction time. Returning [] from discover() says the backend is empty, and a caller told that stops looking.
  • Adding an assertion to ProviderConformanceSuite is a downstream breaking change if it needs anything new from the provider fixture. The fixture contract in CONTRACT is a compatibility surface for every third-party provider inheriting the suite.
  • Resolve markdown links programmatically rather than counting ../ by eye.
  • PowerShell has no heredoc. Use repeated -m flags for commit messages; embedded `n desynchronises the shell.

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.