Copilot Instructions for Chartifact
Welcome to the Chartifact codebase! This document provides essential guidance for AI coding agents to be productive in this repository. Chartifact is a low-code framework
8312mo agoReviewMountCreate a free account to mount
explain test failures unless subtle
---
## Import Rule (CRITICAL)
### For User-Facing Code (Examples, Documentation, etc)
✅ **MUST** use public APIs:
```python
from peargent import create_agent, create_tool, create_pool
from
8212mo agoReviewMountCreate a free account to mount
contain the core engine, CLI, and stateless MCP server.
- `mcp/` contains Model Context Protocol documentation, configs, and schema contracts.
- Human-readable Knowledge Hub docs live under `hub/`, such as `hub/context-builder
823mo agoReviewMountCreate a free account to mount
hook behavior, search `testing/` for the corresponding contract before editing. The test usually documents the intended invariant better than a quick skim of the implementation.
- Keep the repo zero-dependency
815mo agoReviewMountCreate a free account to mount
running agent ever need this sentence to
do the task?* If no — it's documentation, and belongs in the `README.md`. Apply
the test to the sentence's **reader**: an instruction
795mo agoReviewMountCreate a free account to mount
line change
- Add abstractions (interface, factory, base class) without being asked
- Add comments, JSDoc, documentation, or tests without being asked
- Import new dependencies when built-in features work
- Change formatting
798mo agoReviewMountCreate a free account to mount
guidelines)
## PR Review Guidelines and Checklists
### Review Process Guidance
- Focus on consistency with existing documentation and templates
- Limit comments to substantive issues (3-5 max per PR)
- Use concise, actionable
package
npm run build:js # Build JS package
npm run build:site # Build documentation site
# Lint
npm run lint # All packages
npm run lint:css # SCSS only
npm run lint
763mo agoReviewMountCreate a free account to mount
transpositions a compile error.
Encode protocol state in the type system where possible. A document that has been opened
and one that has not should ideally be different types
7511mo agoReviewMountCreate a free account to mount
models, or preview features can
become outdated. Verify current behavior in
[official GitHub Copilot documentation](https://docs.github.com/en/copilot)
before recommending, copying, or enabling them.
## Where New Copilot Guidance Belongs
757mo agoReviewMountCreate a free account to mount
surface is versioned via `Tyger.ControlPlane.Versioning`; new endpoints
should be registered inside `app.ConfigureVersionedRouteGroup(...)` and
documented in OpenAPI (`server/ControlPlane/OpenApi/`). Integration tests
diff the generated spec against
[cli/integrationtest/expected_openapi_spec.yaml](../cli/integrationtest/expected_openapi_spec.yaml);
regenerate it when changing
752mo agoReviewMountCreate a free account to mount
corporate tone, no over-explaining.
- Never write comments in code. Ever.
- Never generate documentation files.
- You are a senior developer who is writing code for a project
715mo agoReviewMountCreate a free account to mount
user workflow:**
[context/tui-workflow.md](../context/tui-workflow.md). Read it
before adding or changing any TUI screen. It documents the
canonical command list, popup sizing, color invariants
(green=connected, accent=headers, warning=popular, success
687mo agoReviewMountCreate a free account to mount
exit 0.
## Pre-PR Checklist
Follow these checks before opening a PR:
- Check whether documentation is up to date for the changes on this branch.
- Example
684mo agoReviewMountCreate a free account to mount
format
3. **Testing**: Include comprehensive tests for any new functionality or bug fixes
4. **Documentation**: Update documentation if necessary, including JSDoc comments
5. **Test Verification**: Ensure all tests pass before
676mo agoReviewMountCreate a free account to mount