Skip to content

Migrate to agent skills#2

Open
TGPSKI wants to merge 1 commit intomainfrom
tgpski-migrate-to-skills
Open

Migrate to agent skills#2
TGPSKI wants to merge 1 commit intomainfrom
tgpski-migrate-to-skills

Conversation

@TGPSKI
Copy link
Owner

@TGPSKI TGPSKI commented Mar 5, 2026

Migrate entry point for creating directed-workflows from AGENTS.md + adding to workspace to global agent skill invocation

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Migrates the project’s agent entry point from AGENTS.md to a new SKILL.md so the directed-workflows pattern can be invoked as a globally installed Cursor skill while still supporting non-Cursor IDEs via a thin redirect.

Changes:

  • Added SKILL.md as the canonical skill/instructions document (with YAML frontmatter) for generating directed workflows.
  • Updated AGENTS.md to redirect agents to SKILL.md (and documented Cursor global-skill install).
  • Updated README.md to document Cursor skill installation, revised repository structure, and updated references from AGENTS.md to SKILL.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
SKILL.md New canonical skill instructions + conventions/templates guidance for directed workflow generation
README.md Updates installation guidance (Cursor skill + workspace option) and switches documentation references to SKILL.md
AGENTS.md Replaced full instructions with a pointer to SKILL.md + brief IDE-specific notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +8 to +20
You have the **directed-workflows** skill installed. Your job is to help the user create directed workflows for the repository they currently have open -- the user's workspace IS the target repo.

This skill contains the pattern definition, examples, and templates for directed workflows: structured markdown files that AI agents execute interactively to walk users through multi-step configuration processes.

## Your Task

When the user asks you to create a directed workflow, you will:

1. **Understand their process** -- what multi-step task they want to encode
2. **Analyze their workspace** -- file structure, naming conventions, validation tools
3. **Generate workflow files** -- in the current workspace, following the conventions below

All references to examples and templates below are relative to the skill directory where this file lives -- read them from there, not from the user's workspace.
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

SKILL.md is now the canonical instruction entry point for both Cursor-skill installs and “add this repo to a multi-root workspace” usage (per README). The statement that “the user's workspace IS the target repo” is not true in the multi-root workspace flow and could cause the agent to generate workflow files into this pattern repo instead of the intended target repo. Please clarify the instructions to explicitly handle multi-root workspaces (e.g., require selecting/confirming the target repo root and reiterate that output must go into the user's target repo, never into the skill/pattern repo).

Suggested change
You have the **directed-workflows** skill installed. Your job is to help the user create directed workflows for the repository they currently have open -- the user's workspace IS the target repo.
This skill contains the pattern definition, examples, and templates for directed workflows: structured markdown files that AI agents execute interactively to walk users through multi-step configuration processes.
## Your Task
When the user asks you to create a directed workflow, you will:
1. **Understand their process** -- what multi-step task they want to encode
2. **Analyze their workspace** -- file structure, naming conventions, validation tools
3. **Generate workflow files** -- in the current workspace, following the conventions below
All references to examples and templates below are relative to the skill directory where this file lives -- read them from there, not from the user's workspace.
You have the **directed-workflows** skill installed. Your job is to help the user create directed workflows for the **user’s target repository** (their application/project repo), not for this skill/pattern repository.
This skill repository contains the pattern definition, examples, and templates for directed workflows: structured markdown files that AI agents execute interactively to walk users through multi-step configuration processes. It is a **pattern repo**, not the target repo you will modify.
## Your Task
When the user asks you to create a directed workflow, you will:
1. **Understand their process** -- what multi-step task they want to encode.
2. **Identify and analyze the target repo**:
- If only a single repository is open, treat that as the target repo.
- If multiple repositories are open (multi-root workspace), explicitly ask the user which repo/root directory is the target and confirm its path.
- Analyze **that target repo** only: its file structure, naming conventions, and validation tools.
3. **Generate workflow files** -- **only in the confirmed target repository**, following the conventions below. Do **not** create or modify workflow files in this skill/pattern repository.
All references to examples and templates below are relative to the skill directory where this file lives -- read them from there, not from the user's workspace/target repo.

Copilot uses AI. Check for mistakes.
Comment on lines +114 to +123
```markdown
**Generate**:

Use `schemas/path/to/schema.yml` as the source of truth for required fields.
Search `path/to/existing/examples/` for reference files.

\```yaml
# template with {placeholders} -- or reference existing files
\```

Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

The example under Generate uses escaped code fences (\```yaml / ````), which will render the backslashes literally in many Markdown viewers and makes the template harder to copy/paste. Consider using a different outer fence length (e.g., quadruple backticks) or removing the escaping so the nested fence is shown cleanly.

Copilot uses AI. Check for mistakes.
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.

2 participants