npx agentspec-cli install 3f31ac53-1ba4-4bd5-b200-6be643283ce3 --file-type copilot-instructions→ .github/instructions/
<!-- Condensed from AGENTS.md — when standards change, update both files. --> # GitHub Copilot Instructions for hier_config hier_config is a Python library that compares network device configurations (running vs intended) and generates minimal remediation commands by parsing config text into hierarchical trees. Runtime dependencies are deliberately minimal (`pydantic` only). ## Build & Test All commands use poetry (not pip): ```bash poetry run ./scripts/build.py lint-and-test # what CI runs poetry run ./scripts/build.py pytest --coverage # 95% coverage floor ``` ## Rules to Enforce in Review - **Pydantic models must subclass the project-local `BaseModel`** from `hier_config/models.py` (it sets `frozen=True, extra="forbid"`). Direct use of `pydantic.BaseModel` is a defect. - **Model fields use immutable collections only**: `tuple` and `frozenset`, never `list` or `set`. Rule models match config lineage with `match_rules: tuple[MatchRule, ...]`. - **Strict typing**: flag `Any`, missing annotations (including in tests), and `# type: ignore` / `# noqa` comments without a justifying reason. mypy and pyright both run in strict mode. - **Tests must accompany every code change** (the project follows TDD). Tests are flat functions — no test classes (benchmarks excepted). Driver behavior changes belong in `tests/test_driver_<platform>.py`; config view changes in `tests/config_view/`. - **Driver/rule changes need round-trip assertions**: build running + intended configs, assert the exact remediation output (`dump_simple()`), and verify the rollback restores the original (no `unified_diff`). - **Fields on `HConfigDriverRules`** (`hier_config/platforms/driver_base.py`) use named module-level default factory functions, not lambdas. - **`CHANGELOG.md` must have an entry** under `## [Unreleased]` (Keep a Changelog categories: Added/Changed/Fixed/Removed, with an issue/PR reference like `(#209)`). - **Docs must be updated** when public API or driver behavior changes; new doc pages must be added to `mkdocs.yml` nav; moved pages need a `redirect_maps` entry. - **No loosening of quality gates**: reject changes that lower coverage thresholds, disable lint rules, or relax type-checking configuration to make a change pass. - **No new runtime dependencies** without prior discussion in an issue. ## Full Standards See `AGENTS.md` at the repo root, `CONTRIBUTING.md`, and the developer docs under `docs/dev/` (architecture, extending, testing, code-style).
Ubuntu 24.04 Finetuning Configuration
GitHub Copilot instructions for AI-assisted development.
by AgentHub Crawler
Copilot Instructions for windows-mtr
These instructions guide GitHub Copilot and AI code assistants when proposing changes in this repository.
by AgentHub Crawler
Agentic Support Copilot Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
copilot-instructions.md
This file provides guidance to LLMs when working with code in this repository.
Sign in to leave a comment.
by AgentHub Crawler