agentleFS
aspose-pdfaspose-pdf/agentic-net-examples/.github/copilot-instructions.md

agentic-net-examples

Copilot instructions2 starsChanged 4 months agoMITView on GitHub

This repository is a curated collection of validated, build-tested C# examples for Aspose.PDF for .NET (26.9.0) targeting net10.0. The canonical coding-agent guide is AGENTS.md at the repository root, and there is one per category folder. Read those first before suggesting changes.

The file

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

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    Use fully-qualified Aspose.Pdf.* types (e.g.

    line 10
  2. Very specific:

    Write errors to Console.Error.WriteLine with the Error: prefix.

    line 13
  3. Very specific:

    Add a .csproj per example.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 3,894 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

This repository is a curated collection of validated, build-tested C# examples for Aspose.PDF for .NET (26.9.0) targeting net10.0.

The canonical coding-agent guide is AGENTS.md at the repository root, and there is one per category folder. Read those first before suggesting changes.

When suggesting code in this repository

  • Match the style of the surrounding .cs files. They are self-contained dotnet new console examples, not a multi-file project.
  • Use fully-qualified Aspose.Pdf.* types (e.g. Aspose.Pdf.Drawing.Path) so System.IO.Path does not shadow them.
  • Wrap every IDisposable in a using block. Document in particular must be disposed deterministically.
  • Aspose.PDF uses 1-based page indexing (pdfDoc.Pages[1] is the first page). Off-by-one is the most common bug.
  • Write errors to Console.Error.WriteLine with the Error: prefix. Successful operations log to Console.WriteLine.

Do not

  • Edit AGENTS.md, index.json, or README.md by hand. They are regenerated by an external generator and your edits will be overwritten.
  • Add a .csproj per example. CI synthesises one at validation time; shipping one would conflict.
  • Suggest API calls that do not exist in Aspose.PDF package version 26.9.0. If you are not sure, check index.json for the apis_used field on neighbouring examples in the same category.

Where to look for context

  • AGENTS.md -- repository-wide conventions, anti-patterns, domain knowledge.
  • <category>/AGENTS.md -- category-specific tips and the file table.
  • CONTRIBUTING.md -- the human-oriented contribution rules.

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.