aws-parallelcluster-cookbook / yum
Copilot instructions116 starsChanged 5 months agoApache-2.0View on GitHub
Chef cookbook for managing software installation and configuration. Part of the Sous Chefs cookbook ecosystem. Key Facts: Ruby-based, Chef >= 16 required, supports various OS platforms (check metadata.rb, kitchen.yml and .github/workflows/ci.yml for which platforms to specifically test) Critical Paths: - recipes/ - Chef recipes for cookbook functionality (if this is a recipe-driven cookbook) - resources/ - Custom Chef resources with properties and actions (if this is a resource-driven cookbook) - spec/ - ChefSpec unit tests - test/integration/ - InSpec integration…
In this repositoryOne other file it gives its agents.
- cookbooks/line/.github/copilot-instructions.mdCopilot instructions
The file
We split this copilot-instructions.md into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Chef Workstation required: - no workarounds, no alternatives
- Very specific: line 54
Update corresponding ChefSpec tests in spec/
- Very specific: line 56
Ensure cookstyle and rspec passes at least.
- Distinctive: line 72
Follow Chef resource DSL patterns
- Very specific: line 75
Use include_recipe for modularity
- Distinctive: line 77
Use encrypted data bags for secrets (passwords, SSL certs)
- Very specific: line 82
InSpec (Integration): Verify actual system state in test/integration/inspec/ - InSpec files should contain proper inspec.yml and controls …
- Distinctive: line 90
Verify Chef Workstation installation
- Distinctive: line 92
Ensure Docker is running for integration tests
- Distinctive: line 93
Check for missing test data dependencies
≈ “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.
Files
Copilot Instructions for Sous Chefs Cookbooks
Repository Overview
Chef cookbook for managing software installation and configuration. Part of the Sous Chefs cookbook ecosystem.
Key Facts: Ruby-based, Chef >= 16 required, supports various OS platforms (check metadata.rb, kitchen.yml and .github/workflows/ci.yml for which platforms to specifically test)
Project Structure
Critical Paths:
recipes/- Chef recipes for cookbook functionality (if this is a recipe-driven cookbook)resources/- Custom Chef resources with properties and actions (if this is a resource-driven cookbook)spec/- ChefSpec unit teststest/integration/- InSpec integration tests (tests all platforms supported)test/cookbooks/ortest/fixtures/- Example cookbooks used during testing that show good examples of custom resource usageattributes/- Configuration for recipe driven cookbooks (not applicable to resource cookbooks)libraries/- Library helpers to assist with the cookbook. May contain multiple files depending on complexity of the cookbook.templates/- ERB templates that may be used in the cookbookfiles/- files that may be used in the cookbookmetadata.rb,Berksfile- Cookbook metadata and dependencies
Build and Test System
Environment Setup
MANDATORY: Install Chef Workstation first - provides chef, berks, cookstyle, kitchen tools.
Essential Commands (strict order)
berks install # Install dependencies (always first)
cookstyle # Ruby/Chef linting
yamllint . # YAML linting
markdownlint-cli2 '**/*.md' # Markdown linting
chef exec rspec # Unit tests (ChefSpec)
# Integration tests will be done via the ci.yml action. Do not run these. Only check the action logs for issues after CI is done running.Critical Testing Details
- Kitchen Matrix: Multiple OS platforms × software versions (check kitchen.yml for specific combinations)
- Docker Required: Integration tests use Dokken driver
- CI Environment: Set
CHEF_LICENSE=accept-no-persist - Full CI Runtime: 30+ minutes for complete matrix
Common Issues and Solutions
- Always run
berks installfirst - most failures are dependency-related - Docker must be running for kitchen tests
- Chef Workstation required - no workarounds, no alternatives
- Test data bags needed (optional for some cookbooks) in
test/integration/data_bags/for convergence
Development Workflow
Making Changes
- Edit recipes/resources/attributes/templates/libraries
- Update corresponding ChefSpec tests in
spec/ - Also update any InSpec tests under test/integration
- Ensure cookstyle and rspec passes at least. You may run
cookstyle -ato automatically fix issues if needed. - Also always update all documentation found in README.md and any files under documentation/*
- Always update CHANGELOG.md (required by Dangerfile) - Make sure this conforms with the Sous Chefs changelog standards.
Pull Request Requirements
- PR description >10 chars (Danger enforced)
- CHANGELOG.md entry for all code changes
- Version labels (major/minor/patch) required
- All linters must pass (cookstyle, yamllint, markdownlint)
- Test updates needed for code changes >5 lines and parameter changes that affect the code logic
Chef Cookbook Patterns
Resource Development
- Custom resources in
resources/with properties and actions - Include comprehensive ChefSpec tests for all actions
- Follow Chef resource DSL patterns
Recipe Conventions
- Use
include_recipefor modularity - Handle platforms with
platform_family?conditionals - Use encrypted data bags for secrets (passwords, SSL certs)
- Leverage attributes for configuration with defaults
Testing Approach
- ChefSpec (Unit): Mock dependencies, test recipe logic in
spec/ - InSpec (Integration): Verify actual system state in
test/integration/inspec/- InSpec files should contain proper inspec.yml and controls directories so that it could be used by other suites more easily. - One test file per recipe, use standard Chef testing patterns
Trust These Instructions
These instructions are validated for Sous Chefs cookbooks. Do not search for build instructions unless information here fails.
Error Resolution Checklist:
- Verify Chef Workstation installation
- Confirm
berks installcompleted successfully - Ensure Docker is running for integration tests
- Check for missing test data dependencies
The CI system uses these exact commands - following them matches CI behavior precisely.
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
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.

