agentleFS
am-spaceam-space/own-planner/.github/copilot-instructions.md

own-planner

Copilot instructions2 starsChanged 2 months agoMITView on GitHub

AGENTS.md is the canonical source for shared repository guidance. Keep this Copilot-specific view aligned when repository-wide conventions change. Read the closest nested AGENTS.md before changing Infrastructure, MCP tools, the web server, the web client, or documentation; it contains the component's implementation and validation rules. OwnPlanner is a layered .NET 10 solution with multiple entry points: For more details on the system's design, please refer to the following documents: - docs/architecture-layers.md: Details the 4-layer clean architecture. - docs/ai-integration.md: Explains the chat…

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

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

    Follow existing repository style, naming, and folder conventions.

    line 29
  2. Distinctive:

    Keep changes minimal and scoped to the requested task.

    line 30
  3. Very specific:

    Never commit directly to master.

    line 31
  4. Distinctive:

    Keep unrelated staged or working-tree changes out of task commits.

    line 34
  5. Distinctive:

    Do not introduce placeholder comments, TODO-only implementations, or incomplete code.

    line 35
  6. Distinctive:

    Avoid breaking public contracts unless explicitly requested.

    line 36
  7. Distinctive:

    Prefer existing abstractions, helpers, and services over introducing new patterns.

    line 37
  8. Distinctive:

    Keep parameter ordering consistent across similar APIs.

    line 39
  9. Distinctive:

    When adding a new interface or modifying an existing one, add or update XML documentation comments for the interface and its members to …

    line 40
  10. Distinctive:

    Always create EF Core migrations using the dotnet ef CLI tool, never manually.

    line 44
  11. Very specific:

    If the startup project cannot be inferred, append --startup-project <StartupProjectPath> as needed.

    line 47
  12. Very specific:

    Treat HTTP routes/DTOs and MCP tool names/schemas/results as external contracts.

    line 53
  13. Distinctive:

    Never log or return password hashes, reset tokens, personal-access-token material, API keys, or another user's data.

    line 55
  14. Distinctive:

    Prefer adding or updating tests only when they are directly relevant to the requested change.

    line 61
  15. Distinctive:

    Keep unit tests close to the affected layer:

    line 62
  16. Distinctive:

    After code changes, verify the affected project or solution still builds when practical.

    line 66
  17. Distinctive:

    Keep public APIs stable unless the task explicitly requires a contract change.

    line 72
  18. Distinctive:

    When editing existing files, match their formatting and local conventions.

    line 73

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

OwnPlanner Copilot Instructions

AGENTS.md is the canonical source for shared repository guidance. Keep this Copilot-specific view aligned when repository-wide conventions change. Read the closest nested AGENTS.md before changing Infrastructure, MCP tools, the web server, the web client, or documentation; it contains the component's implementation and validation rules.

Repository overview

OwnPlanner is a layered .NET 10 solution with multiple entry points:

  • OwnPlanner.Domain: entities and business rules
  • OwnPlanner.Application: use-cases, services, DTOs, orchestration
  • OwnPlanner.Infrastructure: persistence, SQLite, adapters, external integrations
  • OwnPlanner.Web/OwnPlanner.Web.Server: ASP.NET Core web server and API
  • OwnPlanner.Web/ownplanner.web.client: React + TypeScript + Vite frontend
  • OwnPlanner.Console: CLI entry point
  • OwnPlanner.Mcp.StdioApp: MCP stdio host for tool execution

Architecture documentation

For more details on the system's design, please refer to the following documents:

  • docs/architecture-layers.md: Details the 4-layer clean architecture.
  • docs/ai-integration.md: Explains the chat workflow and MCP tool execution.
  • docs/database-schema.md: Details the SQLite separation scheme.

General rules

  • Follow existing repository style, naming, and folder conventions.
  • Keep changes minimal and scoped to the requested task.
  • Never commit directly to master; create a dedicated task branch first. Unless the user specifies another name, use feature/<short-description> for enhancements and fix/<short-description> for bug fixes.
  • Keep unrelated staged or working-tree changes out of task commits.
  • Do not introduce placeholder comments, TODO-only implementations, or incomplete code.
  • Avoid breaking public contracts unless explicitly requested.
  • Prefer existing abstractions, helpers, and services over introducing new patterns.
  • Preserve nullability annotations and existing async APIs.
  • Keep parameter ordering consistent across similar APIs.
  • When adding a new interface or modifying an existing one, add or update XML documentation comments for the interface and its members to explain intent, contracts, and usage expectations.

Database Migrations

  • Always create EF Core migrations using the dotnet ef CLI tool, never manually. When adding a migration, explicitly specify the DbContext:
    • For AppDbContext: dotnet ef migrations add <MigrationName> --project OwnPlanner.Infrastructure --context AppDbContext
    • For AuthDbContext: dotnet ef migrations add <MigrationName> --project OwnPlanner.Infrastructure --context AuthDbContext
    • If the startup project cannot be inferred, append --startup-project <StartupProjectPath> as needed.

Code review rules

  • Preserve tenant isolation: resolve planning data from the authenticated session through a user-bound AppDbContext, never from a client-supplied user ID, database path, or tool argument.
  • Treat HTTP routes/DTOs and MCP tool names/schemas/results as external contracts. Prefer additive compatibility; intentional breaking changes need migration guidance and affected-transport tests.
  • Never log or return password hashes, reset tokens, personal-access-token material, API keys, or another user's data. Use ownership-scoped queries, explicit response/export allowlists, redaction, and cleanup of temporary export files.

Testing and validation

  • Prefer adding or updating tests only when they are directly relevant to the requested change.
  • Keep unit tests close to the affected layer:
    • domain behavior in OwnPlanner.Domain.Tests
    • application behavior in OwnPlanner.Application.Tests
    • infrastructure behavior in OwnPlanner.Infrastructure.Tests
  • After code changes, verify the affected project or solution still builds when practical.

Change preferences

  • Favor small, readable changes over broad refactors.
  • Keep logging structured.
  • Keep public APIs stable unless the task explicitly requires a contract change.
  • When editing existing files, match their formatting and local conventions.

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.