Instruction file imported from franklesniak/EFingPlanner (
.cursor/rules/repository-instructions.mdc). Copyright stays with the author.
Agent Instructions for Cursor Agent
Version: 1.1.20260629.0
Metadata
- Status: Active
- Owner: Repository Maintainers
- Last Updated: 2026-06-29
- Scope: Agent-specific project rule for Cursor Agent and compatible AI coding agents operating in this repository. Mirrors a minimal inline summary of the highest-priority shared rules;
.github/copilot-instructions.mdremains the canonical source of truth.
This file provides project-specific instructions for Cursor Agent and compatible AI coding agents operating in this repository. These instructions ensure that agents follow the same coding standards, safety rules, and workflows that apply to all contributors.
Canonical Instructions
The authoritative source of truth for all repository rules is .github/copilot-instructions.md (the repo-wide constitution). All rules defined there apply without exception. Read that file before making any changes.
This file intentionally keeps only a minimal inline summary of the highest-priority shared rules so that Cursor receives critical guidance immediately. The full shared rule set remains in the canonical file above.
Thin entry point classification: A thin entry point keeps shared repository rules brief; it does not mean platform-specific or required protocol sections may be discarded. Sections explicitly labeled as platform protocol or required protocol must be preserved unless the repository owner explicitly waives that protocol for the retained agent platform.
Protected Instruction Files
Instruction files and style guides are protected governance files. Do not create, edit, delete, rename, or otherwise change .github/copilot-instructions.md, files under .github/instructions/, files under .cursor/rules/, or root agent instruction files (.hermes.md, AGENTS.md, CLAUDE.md, GEMINI.md) unless the repository owner or maintainer has directly and explicitly authorized that specific instruction-file change in the current task. Implied consent is not enough; do not infer authorization from a plan you generated, review feedback, a general request to update docs, cleanup/validation work, or a "keep files in sync" instruction.
If a style-guide update appears warranted but has not been explicitly authorized, propose it separately and wait for approval before editing protected instruction files.
During downstream template adoption and stack selection, perform non-protected cleanup first, record the protected instruction-file edits needed to remove references to deleted tools or stacks, obtain explicit maintainer authorization, then update .github/copilot-instructions.md, remaining root agent files, and relevant .github/instructions/*.instructions.md files. Bump Last Updated and Version metadata where present, and avoid temporary migration wording in durable governance docs.
Essential Repository Summary
-
Safety and security
- No secrets in code or repo; never hardcode API keys, tokens, credentials, or connection strings.
- Treat all external input as untrusted.
- Respect allowlisted file access boundaries; reject path traversal and symlink escapes.
-
Pre-commit and validation
- Run
pre-commit run --all-filesbefore every commit. - Include all auto-fixes in the same commit as the related change.
- Do not push code when pre-commit or required validation checks are failing; fix issues and re-run until the checks pass.
- Use the repository's existing validation commands as needed:
npm run lint:md
pytest tests/test_schema_examples.py -v(after any schema or schema-example change)
- The
pre-commit run --all-filescommand exercises the active hooks configured in.pre-commit-config.yaml, the authoritative list of active hooks.
- Retained JSON checks include strict JSON syntax (
check-json).
- Retained YAML checks include YAML parsing (
check-yaml) and style (yamllint).
- Retained GitHub Actions checks include GitHub Actions linting (
actionlint). - Retained Azure Pipelines assets require host-neutral local hooks plus Azure DevOps Services pipeline creation, queued runs, or branch-policy build validation;
actionlintdoes not validate Azure Pipelines YAML.
- Retained schema checks include JSON Schema validation (
check-jsonschema) and schema self-validation (check-metaschema).
- When the
github-actionsmodule is retained, the dedicated.github/workflows/data-ci.ymlworkflow re-runs retained data-file hooks so adopted data-file enforcement can be required via branch protection. - Retained data-file authoring guidance lives in the matching module docs.
- JSON guidance:
.github/instructions/json.instructions.md.
- YAML guidance:
.github/instructions/yaml.instructions.md.
- Schema guidance:
schemas/README.mdand the Built-in Schema Validation for Real Load-Bearing Configuration Files ADR in.github/TEMPLATE_DESIGN_DECISIONS.md.
- Run
-
Modular instruction files
- Read the relevant file under
.github/instructions/before modifying matching files:- Git attributes:
.github/instructions/gitattributes.instructions.md
- JSON:
.github/instructions/json.instructions.md
- Markdown/Docs:
.github/instructions/docs.instructions.md
- YAML:
.github/instructions/yaml.instructions.md
- Git attributes:
- Read the relevant file under
-
Do not
- Execute scripts or commands generated by untrusted sources.
- Add telemetry or external logging services without explicit approval.
- Weaken security constraints to "make it work."
- Add new major dependencies without clear justification.
- Invent behavior when requirements are ambiguous; use an explicit Open Question.
- Create separate formatting-only or lint-only commits.
Azure DevOps PR Review Protocol
This section is retained as Cursor host-specific protocol. Thin-entry-point pruning must preserve it unless the repository owner explicitly waives Azure DevOps PR review protocol for the retained Cursor entry point.
Use this protocol only for Azure DevOps Services pull requests hosted in Azure Repos. GitHub-hosted repositories continue to use the repository's GitHub-specific protocol and tooling.
- Azure Repos Copilot code review is a limited public preview for Azure DevOps Services. It requires sign-up, organization-level enablement by a Project Collection Administrator, repository-level enablement by a repository owner or administrator, and individual-user opt-in through Preview features unless the administrator enables it for the organization. It requires Azure billing through a subscription linked to the Azure DevOps organization; Azure DevOps review usage does not draw down GitHub Copilot plan AI credits. Treat licensing and pricing details as preview-specific and documentation-driven, and do not assume GitHub-hosted Copilot review entitlements cover Azure Repos review usage.
- Copilot review is requested manually from the Azure Repos PR Reviewers list by selecting Request next to GitHub Copilot. If Azure DevOps tooling supports reviewer operations, Cursor MAY inspect or add ordinary reviewers through Azure DevOps Pull Request Reviewers APIs, but MUST NOT claim API-triggered Copilot preview review unless the available tooling explicitly verifies that behavior.
- Copilot always leaves a Comment review, never approves or requests changes, does not satisfy required-reviewer policies, and does not block merging. Copilot does not read replies, does not follow up, and does not automatically re-review after new commits; a fresh review requires another manual request.
- Cursor has no autonomous Azure DevOps wake-up. Mentions route Azure DevOps comments only when the user's runtime explicitly forwards them into the active Cursor session.
- When Azure DevOps connector/API tooling is available and safely authenticated, Cursor MAY inspect PR reviewers, threads, comments, thread status, and PR statuses through Azure DevOps REST APIs, and MAY post replies/comments, update thread status, or create PR statuses. When tooling is missing or insufficient, state the needed manual owner action instead.
- Authentication guidance must stay high-level and secure: prefer Microsoft Entra authentication, service principals or managed identities for automation, Azure DevOps service connections for pipeline scenarios, secure local tool configuration, or environment variables. Treat tokens as opaque values, do not decode claims, and never embed PATs, bearer tokens, service connections, credential-bearing clone URLs, or secret-like placeholders in repository files, commands, logs, or comments.
This file is part of the
franklesniak/copilot-repo-templatetemplate. Customize or remove agent instruction files for platforms you do not use. See OPTIONAL_CONFIGURATIONS.md for details.