agentleFS
Cogni-AI-OUCogni-AI-OU/cogni-ai-agent-skills/.github/copilot-instructions.md

cogni-ai-agent-skills

Copilot instructions4 starsChanged 7 months agoMITView on GitHub

This is the organization-wide .github repository. It provides default community health files, GitHub Actions workflows, issue/PR templates, and coding standards that apply across all repositories in the organization. Key contents: - Refer to the README.md in the project root for setup and installation instructions. - Check also .tours/getting-started.tour which provides a guided walkthrough of key project features and structure. Follow the .editorconfig spacing rules (2-space indent, newline at EOF) and ensure files remain valid JSON. Use jq . <file> to…

The file

Show its rules and text

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

20 rules. About 0 are common, 6 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check also .tours/getting-started.tour which provides a guided walkthrough of key project features and structure.

    line 19
  2. Very specific:

    Use uv script headers for dependency management:

    line 27
  3. Distinctive:

    Follow PEP 8 style guidelines.

    line 40
  4. Very specific:

    Use argparse for CLI argument parsing.

    line 41
  5. Very specific:

    Follow the .editorconfig spacing rules (2-space indent, newline at EOF) and ensure files remain valid JSON.

    line 48
  6. Very specific:

    Use jq . <file> to validate and format as needed.

    line 49
  7. Very specific:

    Run pre-commit run markdownlint -a or use the Markdownlint extension in VS Code before committing.

    line 54
  8. Very specific:

    Follow .yamllint and yamlfix defaults.

    line 58
  9. Distinctive:

    Treat the repository devcontainer as the default controller environment for local development and testing.

    line 75
  10. Distinctive:

    Keep controller dependency installation in the devcontainer configuration so Molecule scenarios can assume those tools are already …

    line 77
  11. Distinctive:

    Do not install controller-side Python dependencies during Molecule runs when the agent is already operating inside Codespaces or the repo …

    line 80
  12. Very specific:

    Do not create additional Python virtual environments such as .venv or venv.

    line 83
  13. Very specific:

    If dependencies are missing in a Codespace or devcontainer, update .devcontainer/requirements.txt or .devcontainer/devcontainer.json …

    line 86
  14. Very specific:

    Use CODESPACES=true as the primary quick check for GitHub Codespaces.

    line 90
  15. Very specific:

    Keep the .tours folder up-to-date (especially .tours/getting-started.tour) when making significant changes to the codebase.

    line 113
  16. Distinctive:

    Update existing tours or create new ones to reflect changes in project structure, workflows, or key files.

    line 115
  17. Very specific:

    Ansible missing Python modules: If a module such as requests or docker is installed for the main container Python but Ansible still cannot …

    line 130
  18. Very specific:

    Markdown linting errors: Check .markdownlint.yaml for rules.

    line 136
  19. Very specific:

    YAML linting errors: Check .yamllint for rules.

    line 137
  20. Very specific:

    JSON formatting errors: Use jq . <file> to validate JSON syntax

    line 138

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

Copilot Instructions

Project Overview

This is the organization-wide .github repository. It provides default community health files, GitHub Actions workflows, issue/PR templates, and coding standards that apply across all repositories in the organization.

Key contents:

  • Community health files: CODE_OF_CONDUCT.md, issue templates, PR templates
  • Reusable workflows: CI/CD, linting, automated reviews
  • Organization profile: Public-facing info in profile/README.md
  • Agent configurations: AGENTS.md for AI coding assistants

Getting started

  • Refer to the README.md in the project root for setup and installation instructions.
  • Check also .tours/getting-started.tour which provides a guided walkthrough of key project features and structure.

Coding Standards

Python

  • Use Python 3.11+.
  • Use uv script headers for dependency management:

    #!/usr/bin/env -S uv run --script
    # /// script
    # requires-python = ">=3.11"
    # dependencies = [
    #     "xero-python",
    #     "PyYAML",
    # ]
    # ///
  • Follow PEP 8 style guidelines.
  • Use argparse for CLI argument parsing.
  • Handle BrokenPipeError for CLI tools that might be piped to head or grep.

Formatting Guidelines

JSON

Follow the .editorconfig spacing rules (2-space indent, newline at EOF) and ensure files remain valid JSON. Use jq . <file> to validate and format as needed.

Markdown

Conform to .markdownlint.yaml (80-character guidance, heading structure, fenced code blocks). Run pre-commit run markdownlint -a or use the Markdownlint extension in VS Code before committing.

YAML

Follow .yamllint and yamlfix defaults. Run pre-commit run yamllint -a or yamlfix to normalize formatting.

Notes:

  • Project utilizes Codespaces with config at .devcontainer/devcontainer.json and requirements at .devcontainer/requirements.txt.
  • GitHub Actions run pre-commit checks (.pre-commit-config.yaml).
  • To verify locally, run pre-commit run yamllint -a from the repo root.

Devcontainer Guidance

Project utilizes Codespaces with config at .devcontainer/devcontainer.json and requirements at .devcontainer/requirements.txt. These rules apply only when the agent is running inside GitHub Codespaces or the repository's VS Code devcontainer. In that environment, the container should be treated as the controller runtime and as the source of required controller-side dependencies.

  • Treat the repository devcontainer as the default controller environment for local development and testing.
  • Keep controller dependency installation in the devcontainer configuration so Molecule scenarios can assume those tools are already available.
  • Do not install controller-side Python dependencies during Molecule runs when the agent is already operating inside Codespaces or the repo devcontainer.
  • Do not create additional Python virtual environments such as .venv or venv; use the existing container Python environment, which should already provide the required dependencies.
  • If dependencies are missing in a Codespace or devcontainer, update .devcontainer/requirements.txt or .devcontainer/devcontainer.json instead of introducing a per-run Molecule install step or a separate virtual environment.
  • Use CODESPACES=true as the primary quick check for GitHub Codespaces.
  • Outside Codespaces, use the presence of /.dockerenv together with the repository .devcontainer/devcontainer.json as a practical check for the containerized dev environment.

Project Structure

.
├── .github/
│   ├── ISSUE_TEMPLATE/      # Issue templates (bug reports, feature requests)
│   ├── agents/              # AI agent configurations
│   ├── workflows/           # GitHub Actions workflows
│   ├── copilot-instructions.md
│   └── pull_request_template.md
├── ansible/, git/, ...      # Skill directories with SKILL.md guidance
├── .tours/                  # VS Code guided tours
├── AGENTS.md                # Repository-specific agent guidance
└── README.md                # Repository overview

Tours

  • Keep the .tours folder up-to-date (especially .tours/getting-started.tour) when making significant changes to the codebase. Update existing tours or create new ones to reflect changes in project structure, workflows, or key files.

Troubleshooting

Finding Build Errors

To identify and diagnose the latest build errors:

  1. Reproduce errors locally:
    • For pre-commit errors: Run pre-commit run -a to check all files
    • For specific hooks: Run pre-commit run <hook-name> -a (e.g., markdownlint, yamllint)
    • For actionlint errors: Install actionlint and run it on workflow files
  2. Common error patterns:
    • Ansible missing Python modules: If a module such as requests or docker is installed for the main container Python but Ansible still cannot import it, check ansible --version to identify the interpreter in use. In Codespaces/devcontainers, Ansible may run from a pipx-managed environment, so install controller-side libraries there as well, for example with pipx inject ansible -r .devcontainer/requirements-ansible.txt.
    • Markdown linting errors: Check .markdownlint.yaml for rules; errors show line numbers
    • YAML linting errors: Check .yamllint for rules; verify indentation and structure
    • JSON formatting errors: Use jq . <file> to validate JSON syntax

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.