typespec-azure
Copilot instructions27 starsChanged 2 years agoMITView on GitHub
This document serves as an index to task-specific instructions for GitHub Copilot. Each task has its own detailed instructions file in the .github/prompts directory. This repo pins its development tools with mise via mise.toml and mise.lock: Node.js, pnpm, Python, uv, Go, Java, and Maven.
In this repository8 other files it gives its agents.
- code-reviewSkill
- create-linter-ruleSkill
- doc-example-generatorSkill
- hotfix-releaseSkill
- tcgc-newsletterSkill
- typespec-go-add-spector-testSkill
- typespec-python-releaseSkill
- typespec-ts-add-spector-testSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 2 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 9
Check for mise first (mise --version).
- Very specific: line 11
Run mise install from the repo root to install the pinned versions.
- Very specific: line 13
Use mise ls --current to confirm which tool versions are active for this repo.
- Very specific: line 14
If mise is not installed, fall back to the tools on PATH, but match the versions in mise.toml and the packageManager field in package.json.
- Very specific: line 19
Use pnpm as the package manager (prefix with mise exec -- when mise is installed but not activated in the shell)
- Very specific: line 20
Use pnpm install to install dependencies
- Very specific: line 21
Use pnpm build to build every package
- Very specific: line 22
Use pnpm -r --filter "<pkgName>..." build to build to a specific package <pkgName>
- Very specific: line 23
Use pnpm format to format all files
- Very specific: line 27
Always run pnpm format && pnpm lint before committing.
- Distinctive: line 28
Always describe changes (see "Describing changes" section below).
- Very specific: line 29
Do not commit the file core or pnpm-lock.yaml unless your change specifically requires updating them (e.g., the nightly bot updates the …
- Very specific: line 34
Use pnpm change add to add a change description for the touched packages
- Very specific: line 39
When creating worktrees or branches for new work, base them off the main Azure fork's main branch (Azure/typespec-azure).
- Very specific: line 40
When creating worktrees (which clone the repo), always clone recursively with --recurse-submodules and run git submodule update --init if …
- Distinctive: line 42
When pushing changes and creating pull requests, push to your personal fork and open PRs against the main Azure fork's main branch.
≈ “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
Copilot Instructions
This document serves as an index to task-specific instructions for GitHub Copilot. Each task has its own detailed instructions file in the .github/prompts directory.
Development Environment (mise)
This repo pins its development tools with mise via mise.toml and mise.lock: Node.js, pnpm, Python, uv, Go, Java, and Maven.
- Check for mise first (
mise --version). If it is installed, prefer the mise-managed tools over whatever happens to be onPATH— a globally installednode/pnpm/pythonis often the wrong version or misconfigured. - A fresh clone or git worktree is untrusted, so mise refuses to load its config. If you see
Config files in ... are not trusted, runmise trustfrom the repo root, then continue. - Run
mise installfrom the repo root to install the pinned versions. It is a fast no-op (mise all tools are installed) when everything is already present, so it is safe to run before other setup. - Non-interactive shells (including the ones agents run commands in) usually do not have mise activated, so the pinned tools are not on
PATH. Prefix commands withmise exec --(for examplemise exec -- pnpm install,mise exec -- pnpm build,mise exec -- python --version). Without it, commands can fail with confusing errors such asThe packageManager dependency "pnpm@..." in pnpm-lock.yaml must use a registry package path. - Use
mise ls --currentto confirm which tool versions are active for this repo. - If mise is not installed, fall back to the tools on
PATH, but match the versions inmise.tomland thepackageManagerfield inpackage.json.
Install and Build
- Packages are located in the
packagesfolder - Use
pnpmas the package manager (prefix withmise exec --when mise is installed but not activated in the shell) - Use
pnpm installto install dependencies - Use
pnpm buildto build every package - Use
pnpm -r --filter "<pkgName>..." buildto build to a specific package<pkgName> - Use
pnpm formatto format all files
Commit Rules
- Always run
pnpm format && pnpm lintbefore committing. - Always describe changes (see "Describing changes" section below).
- Do not commit the file
coreorpnpm-lock.yamlunless your change specifically requires updating them (e.g., the nightly bot updates thecoresubmodule dependency). If these appear in your staged changes unintentionally, unstage them before committing.
Describing changes
- Repo use
@chronus/chronusfor changelogs - Use
pnpm change addto add a change description for the touched packages - Types of changes are described in
.chronus/config.yaml
Branch and PR Workflow
- When creating worktrees or branches for new work, base them off the main Azure fork's
mainbranch (Azure/typespec-azure). Depending on the user's local git remote setup, this may be calledupstreamororigin. - When creating worktrees (which clone the repo), always clone recursively with
--recurse-submodulesand rungit submodule update --initif thecore/submodule is missing or not at the correct commit. See CONTRIBUTING.md - Cloning recursively for details. - A new clone or worktree also needs
mise trust(andmise installif tools are missing) beforepnpmand other tools will work — see Development Environment (mise). - When pushing changes and creating pull requests, push to your personal fork and open PRs against the main Azure fork's
mainbranch.
Available Task Instructions
- Testserver Generation: Instructions for generating TypeSpec HTTP spec test servers
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.

