agentleFS
MicrosoftKnown publishermicrosoft-foundry/forgebook/.github/copilot-instructions.md

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

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
  1. Distinctive:

    When reviewing code in this repository:

    line 7
  2. Distinctive:

    Avoid nested ternary operators for readability

    line 12
  3. Distinctive:

    Prefer functional patterns where possible

    line 13
  4. Very specific:

    Components: Use .astro extension

    line 29
  5. Very specific:

    Links: Always use withBase() or import.meta.env.BASE_URL — base path changes in PR previews

    line 30
  6. Distinctive:

    Before approving changes, verify these pass:

    line 35

≈ “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

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 with github username)
  • 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.yaml with name and title

Technology Stack

  • Site: Astro with TypeScript strict mode
  • Styling: Tailwind CSS v4 (use @custom-variant syntax, not legacy config)
  • Components: Use .astro extension
  • Links: Always use withBase() or import.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 check

Notebook Assets

Organize per-recipe in subdirectories matching the registry slug:

notebooks/media/<slug>/01-screenshot.png
notebooks/data/<slug>/sample.csv

Reference 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.

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.