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.
In this repository36 other files it gives its agents.
- accessibility-and-tagged-pdfsAGENTS.md
- aspose-pdf-examplesAGENTS.md
- basic-operationsAGENTS.md
- compare-pdfAGENTS.md
- conversionAGENTS.md
- documentAGENTS.md
- facades-acroformsAGENTS.md
- facades-annotationsAGENTS.md
- facades-bookmarksAGENTS.md
- facades-convert-documentsAGENTS.md
- facades-documentsAGENTS.md
- facades-edit-documentAGENTS.md
- facades-extract-images-and-textAGENTS.md
- facades-fill-formsAGENTS.md
- facades-formsAGENTS.md
- facades-metadataAGENTS.md
- facades-pagesAGENTS.md
- facades-secure-documentsAGENTS.md
- facades-sign-documentsAGENTS.md
- facades-stampsAGENTS.md
- facades-texts-and-imagesAGENTS.md
- facades-xmp-metadataAGENTS.md
- graphs-zugferd-operatorsAGENTS.md
- pagesAGENTS.md
- parse-pdfAGENTS.md
- securing-and-signing-pdfAGENTS.md
- stampingAGENTS.md
- uncategorizedAGENTS.md
- working-with-annotationsAGENTS.md
- working-with-attachmentsAGENTS.md
- working-with-formsAGENTS.md
- working-with-graphsAGENTS.md
- working-with-imagesAGENTS.md
- working-with-tablesAGENTS.md
- working-with-textAGENTS.md
- working-with-xmlAGENTS.md
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
- Very specific: line 10
Use fully-qualified Aspose.Pdf.* types (e.g.
- Very specific: line 13
Write errors to Console.Error.WriteLine with the Error: prefix.
- Very specific: line 18
Add a .csproj per example.
≈ “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.
Files
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
.csfiles. They are self-containeddotnet new consoleexamples, not a multi-file project. - Use fully-qualified
Aspose.Pdf.*types (e.g.Aspose.Pdf.Drawing.Path) soSystem.IO.Pathdoes not shadow them. - Wrap every
IDisposablein ausingblock.Documentin 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.WriteLinewith theError:prefix. Successful operations log toConsole.WriteLine.
Do not
- Edit
AGENTS.md,index.json, orREADME.mdby hand. They are regenerated by an external generator and your edits will be overwritten. - Add a
.csprojper example. CI synthesises one at validation time; shipping one would conflict. - Suggest API calls that do not exist in
Aspose.PDFpackage version 26.9.0. If you are not sure, checkindex.jsonfor 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.
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.

