Skip to content

Conversation

@github-actions
Copy link
Contributor

Documentation Updates - 2025-10-31

This PR updates the documentation based on features merged in the last 24 hours.

Features Documented

Changes Made

AI Engines Reference (docs/src/content/docs/reference/engines.md)

  • Added "Custom Agent Files" section explaining:
    • How to create custom agent files in .github/agents/
    • How to import and use agent files via imports field
    • Agent file requirements and constraints
    • Migration guide from deprecated engine.custom-agent to imports

Frontmatter Reference (docs/src/content/docs/reference/frontmatter.md)

  • Added "Permission Validation" subsection under Permissions explaining:
    • Non-strict mode behavior: actionable warnings with fix suggestions
    • Strict mode behavior: compilation errors for under-provisioned permissions
    • Example warning message format
    • When to use each mode

Imports Reference (docs/src/content/docs/reference/imports.md)

  • Added "Agent Files" section explaining custom agent imports
  • Updated "Frontmatter Merging" to mention agent-specific fields
  • Added cross-reference to Custom Agent Files documentation

Merged PRs Referenced

Notes

The --use-local-secrets flag from PR #2841 was already comprehensively documented in the CLI reference at lines 28, 279, 291, 303, and 318-340, so no additional documentation was needed.

All documentation follows the Diátaxis framework and adheres to the style guidelines in .github/instructions/documentation.instructions.md.

AI generated by Daily Documentation Updater

This PR updates the documentation based on features merged in the last 24 hours.

## Documentation Updates

### Custom Agent Files (PR #2838, #2837)
- Added comprehensive documentation for custom agent files in the AI Engines reference
- Documented the new imports-based approach for agent files
- Provided migration guide from deprecated `engine.custom-agent` field
- Included examples of creating and using custom agents

### Permission Validation (PR #2843)
- Documented new permission validation behavior in non-strict mode
- Added examples of warning messages when permissions are under-provisioned
- Explained the difference between non-strict and strict mode validation
- Provided actionable guidance for resolving permission warnings

### Agent File Imports (PR #2838)
- Updated Imports reference to explain agent file imports
- Clarified that only one agent file can be imported per workflow
- Cross-referenced Custom Agent Files documentation in Engines reference

## Changes Made

- Updated `docs/src/content/docs/reference/engines.md`:
  - Added "Custom Agent Files" section with creation and usage examples
  - Documented agent file requirements and constraints
  - Provided migration guide from `engine.custom-agent` to `imports`

- Updated `docs/src/content/docs/reference/frontmatter.md`:
  - Added "Permission Validation" subsection under Permissions
  - Documented non-strict mode warning behavior
  - Documented strict mode error behavior
  - Included example warning messages

- Updated `docs/src/content/docs/reference/imports.md`:
  - Added "Agent Files" section
  - Updated "Frontmatter Merging" to mention agent file fields

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation labels Oct 31, 2025
run: npm ci
```

## Custom Agent Files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot move to own file

Copy link
Contributor

Copilot AI commented Oct 31, 2025

@pelikhan I've opened a new pull request, #2859, to work on those changes. Once the pull request is ready, I'll request review from you.

- **One per workflow**: Only one agent file can be imported per workflow
- **Import syntax**: Use `imports` field (not `engine.custom-agent`)

## Migration from engine.custom-agent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove deprecates features

---
name: My Custom Agent
description: Specialized agent for code review tasks
tools:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove tools section

order: 650
---

All AI engines (Copilot, Claude, Codex) support custom agent files that provide specialized instructions and behavior. Agent files are markdown documents stored in the `.github/agents/` directory and imported via the `imports` field.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot copilot supports agents natively, for other engine, the markdown body is injected as prompt.

Copy link
Contributor

Copilot AI commented Oct 31, 2025

@pelikhan I've opened a new pull request, #2872, to work on those changes. Once the pull request is ready, I'll request review from you.

@pelikhan
Copy link
Contributor

@copilot format and recompile

Copy link
Contributor

Copilot AI commented Oct 31, 2025

@pelikhan I've opened a new pull request, #2873, to work on those changes. Once the pull request is ready, I'll request review from you.

@pelikhan pelikhan enabled auto-merge (squash) October 31, 2025 13:55
@pelikhan pelikhan merged commit 0256bd2 into main Oct 31, 2025
16 checks passed
@pelikhan pelikhan deleted the docs-update-2025-10-31-25fb5335c89aeb71 branch October 31, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants