forgebook
Copilot instructions39 starsChanged 6 months agoMITView on GitHub
A curated Microsoft Foundry cookbook publishing platform. Jupyter notebooks are the source of truth; metadata lives in registry.yaml. When reviewing code in this repository: For any changes to registry.yaml: - Slugs must match pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ (lowercase letters, numbers, hyphens only) - Paths must start with notebooks/ and end with .ipynb - Required fields: slug, path, title, authors (at least one with github username) - Optional: description (max 500 chars), date (YYYY-MM-DD), tags - Tags must exist in tags.yaml — unknown…
- Reads credentials
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- cookbook-reviewSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
When reviewing code in this repository:
- Distinctive: line 12
Avoid nested ternary operators for readability
- Distinctive: line 13
Prefer functional patterns where possible
- Very specific: line 29
Components: Use .astro extension
- Very specific: line 30
Links: Always use withBase() or import.meta.env.BASE_URL — base path changes in PR previews
- Distinctive: line 35
Before approving changes, verify these pass:
≈ “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 for Forgebook
A curated Microsoft Foundry cookbook publishing platform. Jupyter notebooks are the source of truth; metadata lives in registry.yaml.
Code Review Focus Areas
When reviewing code in this repository:
- Notebooks are sacred — Never add site-specific metadata inside notebooks
- Publishing is explicit — Authors opt-in via
registry.yaml, not auto-discovered - Credit is intentional — Authors listed explicitly, not inferred from git history
- Avoid nested ternary operators for readability
- Prefer functional patterns where possible
Registry Validation
For any changes to registry.yaml:
- Slugs must match pattern:
^[a-z0-9]+(?:-[a-z0-9]+)*$(lowercase letters, numbers, hyphens only) - Paths must start with
notebooks/and end with.ipynb - Required fields:
slug,path,title,authors(at least one withgithubusername) - Optional:
description(max 500 chars),date(YYYY-MM-DD),tags - Tags must exist in
tags.yaml— unknown tags fail CI - Authors must exist in
authors.yamlwithnameandtitle
Technology Stack
- Site: Astro with TypeScript strict mode
- Styling: Tailwind CSS v4 (use
@custom-variantsyntax, not legacy config) - Components: Use
.astroextension - Links: Always use
withBase()orimport.meta.env.BASE_URL— base path changes in PR previews - Testing: Playwright with
baseURL: "http://localhost:4321/forgebook", role-based selectors
Validation Commands
Before approving changes, verify these pass:
# Registry changes
cd scripts && npx tsx validate-registry.ts
# Site changes
cd site && npm run build # Includes astro checkNotebook Assets
Organize per-recipe in subdirectories matching the registry slug:
notebooks/media/<slug>/01-screenshot.png
notebooks/data/<slug>/sample.csvReference data and images using relative paths from notebooks:
# From notebooks/my-notebook.ipynb (slug: my-notebook)
df = pd.read_csv("data/my-notebook/sample.csv")For full project details, see AGENTS.md.
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.

