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
- Distinctive: line 23
Never commit to main. For every unit of work:
- Very specific: line 77
Every package ships py.typed.
- Very specific: line 110
Dependency ceilings need evidence: Check the dependency's real requires_python and classifiers on PyPI before adding or trusting an upper …
- Very specific: line 141
PowerShell has no heredoc: Use repeated -m flags for commit messages.
≈ “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.
Files
Working in this repository
Poetry monorepo. Ten packages, versioned and released together.
| Path | Package |
packages/core/agentskills-core | Registry, SkillProvider ABC, spec validation. Only dependency is pyyaml. |
packages/adapters/agentskills-adapters | Import common agent instruction formats as native skills |
packages/providers/agentskills-fs | Local filesystem provider |
packages/providers/agentskills-http | Static HTTP / CDN provider |
packages/integrations/agentskills-langchain | LangChain tools |
packages/integrations/agentskills-agentframework | Microsoft Agent Framework context provider |
packages/integrations/agentskills-mcp-server | MCP server + Agent Framework MCP bridge |
packages/retrieval/agentskills-retrieval | Query-time skill selection: BM25 and embedding rankers |
packages/tools/agentskills-tools | agentskills command: init, validate, lint, inspect, serve |
packages/testing/agentskills-testing | Provider 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 prefix | Label to assign | Release-notes section |
feat/ | enhancement or feature | Features |
fix/ | bug or fix | Bug Fixes |
docs/ | documentation | Documentation |
| CI, workflows, release tooling | ci or automation | CI/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 importsscripts/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 absolutehttps://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.pyCOVERAGE_FLOORS, bothbump-versionscripts,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.pyhas 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-toolsimportedyamlwithout declaringpyyamlfor a whole milestone, riding on the copyagentskills-corepulled in.scripts/check_declared_dependencies.pyruns in the lint job now; an import meant to stay optional belongs inside a function or behindexcept ImportError. - A package with a
pytest11entry point is invisible topytest --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:covrunscoverage run -m pytestfor this reason; do not "simplify" it back. - Constructing an
httpx.AsyncClientcosts ~0.17s (TLS context), which is whyagentskills-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.lockhides upstream breaking changes. Locked installs kept CI green while the published packages were broken for every new user. The advisorytest-unlockedCI 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 lockmust 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 withpoetry check --lockandpoetry install --dry-run. - Dependency ceilings need evidence. Check the dependency's real
requires_pythonand classifiers on PyPI before adding or trusting an upper bound. - The local venv holds packages that
poetry.lockdoes not.tiktokenis one. Anything imported optionally will therefore behave differently here and in CI, so a test that cares must force the branch withmonkeypatch.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.4has appeared twice. The SHA is right and the comment is not, so read it as decoration and confirm withgit ls-remote --tags <repo> 'refs/tags/vX.Y.Z^{}'— annotated tags, whichgithub/codeql-actionuses, need the^{}or you compare against the tag object. codeql-action/initand/analyzemust 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.ymlnow groups them undercodeql-actionto 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.ymlcreates the GitHub Release, so arelease:trigger anywhere else is dead code — the versioned docs deploy sat unreachable through two releases.docs.ymlchains offworkflow_runofPublishinstead. The exceptions areworkflow_dispatchandrepository_dispatch. publish.ymltriggers onv*.*.*, notv*.actions/validateis 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_discoveryare plain attributes, notClassVar, so an instance can decide at construction time. Returning[]fromdiscover()says the backend is empty, and a caller told that stops looking. - Adding an assertion to
ProviderConformanceSuiteis a downstream breaking change if it needs anything new from theproviderfixture. The fixture contract inCONTRACTis 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
-mflags for commit messages; embedded`ndesynchronises the shell.
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
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.

