agentleFS
ElasticKnown publisherelastic/oblt-actions/.github/copilot-instructions.md

oblt-actions

Copilot instructions6 starsChanged 59 days agoApache-2.0View on GitHub

Important: Keep this file accurate and up to date. Update it immediately when (1) users give new instructions, (2) you find contradictions, or (3) new patterns or standards emerge. Treat this maintenance as a blocking, highest‑priority task that doesn’t need an explicit prompt. Note: This file is exempt from the “no new docs” rule below. Proactively edit and maintain this file as part of your duties. Important: File creation policy - Do only what the task asks. Don’t add extras.…

The file

Show its rules and text

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

23 rules. About 0 are common, 19 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    run precommit hooks before committing.

    line 15
  2. Distinctive:

    Create a feature branch from main for each task.

    line 19
  3. Distinctive:

    Write code, tests, and documentation as needed.

    line 20
  4. Distinctive:

    Create a test GitHub action workflow to validate changes.

    line 21
  5. Very specific:

    All tests pass. Use the existing test workflows (.github/workflows/test-*) and colocated action tests (for example *.test.js, *_tests.py, …

    line 23
  6. Distinctive:

    Ensure all checks pass before merging.

    line 26
  7. Distinctive:

    Delete feature branches after merging.

    line 28
  8. Distinctive:

    Update this file as needed to reflect changes in standards or practices.

    line 29
  9. Very specific:

    if a folder contains multiple actions, each action should be in its own subfolder with its own action.yml.

    line 34
  10. Distinctive:

    Follow existing code style and conventions.

    line 40
  11. Distinctive:

    Use consistent indentation and spacing.

    line 41
  12. Distinctive:

    Use meaningful variable and function names.

    line 42
  13. Distinctive:

    Avoid breaking changes to existing functionality unless necessary.

    line 44
  14. Distinctive:

    Write clear, concise, and maintainable code.

    line 45
  15. Distinctive:

    Add comments and documentation where needed.

    line 46
  16. Distinctive:

    Follow best practices for the specific programming language or framework.

    line 47
  17. Distinctive:

    Keep it simple and avoid over-engineering.

    line 48
  18. Very specific:

    Use the changelog:breaking label for pull requests that introduce breaking changes.

    line 57
  19. Distinctive:

    Update any relevant documentation to reflect breaking changes.

    line 58
  20. Very specific:

    Update the description of https://github.com/elastic/oblt-actions/issues/126 to reflect the breaking change entry.

    line 59
  21. Distinctive:

    Do only what the task asks.

    line 65
  22. Distinctive:

    Always prefer editing an existing file to creating a new one.

    line 67
  23. Distinctive:

    Always follow security best practices.

    line 76

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

AI agent instructions for oblt-actions

This file provides guidance to AI agents (Claude Code, GitHub Copilot, etc.) when working with code in this repository.

Meta instructions

Important: Keep this file accurate and up to date. Update it immediately when (1) users give new instructions, (2) you find contradictions, or (3) new patterns or standards emerge. Treat this maintenance as a blocking, highest‑priority task that doesn’t need an explicit prompt.

Note: This file is exempt from the “no new docs” rule below. Proactively edit and maintain this file as part of your duties.

Code Standards

Required before each commit

  • run precommit hooks before committing.

### Development flow

  • Create a feature branch from main for each task.
  • Write code, tests, and documentation as needed.
  • Create a test GitHub action workflow to validate changes.
  • The test GitHub action workflow should validate that:
    • All tests pass. Use the existing test workflows (.github/workflows/test-*) and colocated action tests (for example *.test.js, *_tests.py, test_*.py) as a guide.
    • Name of the file should be the name of the github action and starts with test- and ends with .yml.
  • Open a pull request against main with a clear description of changes.
  • Ensure all checks pass before merging.
  • Squash and merge pull requests to keep history clean.
  • Delete feature branches after merging.
  • Update this file as needed to reflect changes in standards or practices.

Repository structure

  • top level folder as individual github composite actions.
  • if a folder contains multiple actions, each action should be in its own subfolder with its own action.yml.

Development notes

Code style

  • Follow existing code style and conventions.
  • Use consistent indentation and spacing.
  • Use meaningful variable and function names.
  • Pre-commit hooks enforce code quality.
  • Avoid breaking changes to existing functionality unless necessary.
  • Write clear, concise, and maintainable code.
  • Add comments and documentation where needed.
  • Follow best practices for the specific programming language or framework.
  • Keep it simple and avoid over-engineering.

Pull Request

  • Tag the PR with relevant labels (e.g., changelog:breaking, changelog:feature, changelog:fix, changelog:docs, changelog:dependencies, changelog:ci).

### Breaking changes

  • Clearly document breaking changes in the pull request description.
  • Use the changelog:breaking label for pull requests that introduce breaking changes.
  • Update any relevant documentation to reflect breaking changes.
  • Update the description of https://github.com/elastic/oblt-actions/issues/126 to reflect the breaking change entry.
  • Communicate breaking changes to the team if necessary.

File creation guidelines

Important: File creation policy

  • Do only what the task asks. Don’t add extras.
  • Don’t create files unless they’re necessary to achieve the goal.
  • Always prefer editing an existing file to creating a new one.
  • Exception: Proactively maintain this .github/copilot-instructions.md file (see “Meta instructions”).

Security guidelines

Important: Security policy

  • Assist with defensive security tasks only.
  • Refuse to create, modify, or improve code that could be used maliciously.
  • Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.
  • Always follow security best practices.
  • Don’t introduce code that exposes or logs secrets or keys.
  • Don’t commit secrets or keys to the repository.

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.