Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

Extends bootstrap script functionality from rules to tasks. Bootstrap scripts (executable files with -bootstrap suffix) prepare the environment before processing, enabling dynamic data fetching, dependency installation, and environment setup.

Changes

  • main.go: Call runBootstrapScript() for task files before content emission (5 lines)
  • integration_test.go: Add 3 tests covering task bootstrap execution, optional bootstrap, and rule+task bootstrap interaction
  • README.md: Document task bootstrap in "How It Works" and "Bootstrap Scripts" sections

Naming & Execution

.agents/tasks/fix-bug.md       → .agents/tasks/fix-bug-bootstrap
.agents/rules/jira.md          → .agents/rules/jira-bootstrap

Execution order: rule bootstraps → rules → task bootstrap → task content

Example

#!/bin/bash
# .agents/tasks/fix-bug-bootstrap
echo "Fetching issue ${issue_number} details..." >&2
gh issue view ${issue_number} --json title,body > /tmp/issue.json

Bootstrap output goes to stderr. Scripts are optional and auto-chmod'd to executable.

Original prompt

Add support for bootstraping to tasks as well as rules.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 13, 2025 18:50
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for bootstrapping tasks and rules Add bootstrap script support for tasks Nov 13, 2025
Copilot AI requested a review from alexec November 13, 2025 18:56
Copilot finished work on behalf of alexec November 13, 2025 18:56
@alexec alexec requested a review from swedishborgie November 13, 2025 19:00
@alexec alexec marked this pull request as ready for review November 13, 2025 19:00
Copy link
Collaborator

@swedishborgie swedishborgie left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexec alexec merged commit 71b8d96 into main Nov 13, 2025
2 checks passed
@alexec alexec deleted the copilot/add-bootstrap-support-tasks-rules branch November 13, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants