docs: add Agent Skills for development workflows - #338
Open
bkrupa wants to merge 3 commits into
Open
Conversation
Reviewer's GuideIntroduces an Agent Skills directory (.skills/) to the repository and populates it with focused SKILL.md guides that encode the project’s development, branching, stacking, cascading, debugging, testing, linting, installing, manual testing, and pull-request workflows in the Agent Skills open standard format. Sequence diagram for Agent Skills discovery and executionsequenceDiagram
actor Developer
participant Agent
participant Repo
participant SkillsDir as Skills_directory
participant SkillFile as SKILL_md
Developer->>Agent: describe_task_for_twig_development
Agent->>Repo: locate_project_root
Repo-->>Agent: project_root_path
Agent->>SkillsDir: scan_directory_for_skills
SkillsDir-->>Agent: list_of_SKILL_md_files
Agent->>SkillFile: read_frontmatter
SkillFile-->>Agent: name_and_description
Agent->>Agent: rank_skills_by_description_match
Agent->>SkillFile: load_full_body_for_selected_skill
SkillFile-->>Agent: detailed_instructions
Agent->>Developer: propose_concrete_workflow_steps
Developer->>Agent: approve_or_refine_plan
Agent->>Developer: guide_through_commands_and_checks
Flow diagram for selecting the appropriate twig development skillflowchart TD
Start["Start_twig_related_task"]
Start --> Q1["Need_to_build_or_check_the_workspace?"]
Q1 -->|yes| Skill_building["use_skill_building"]
Q1 -->|no| Q2["Need_to_lint_or_format_code?"]
Q2 -->|yes| Skill_linting["use_skill_linting"]
Q2 -->|no| Q3["Need_to_run_tests_or_coverage?"]
Q3 -->|yes| Skill_testing["use_skill_testing"]
Q3 -->|no| Q4["Installing_dev_builds_or_tools?"]
Q4 -->|yes| Skill_installing["use_skill_installing"]
Q4 -->|no| Q5["Debugging_unexpected_twig_behavior?"]
Q5 -->|yes| Skill_debugging["use_skill_debugging"]
Q5 -->|no| Q6["Working_with_branches_and_dependencies?"]
Q6 -->|yes_core_tree| Skill_branching["use_skill_branching"]
Q6 -->|stacked_feature_branches| Skill_stacking["use_skill_stacking"]
Q6 -->|propagate_changes_through_tree| Skill_cascading["use_skill_cascading"]
Q6 -->|none_of_these| Q7["Creating_or_managing_pull_requests?"]
Q7 -->|yes| Skill_pr["use_skill_pull_requests"]
Q7 -->|no| Q8["Manual_testing_against_real_repo?"]
Q8 -->|yes| Skill_manual["use_skill_manual_testing"]
Q8 -->|no| End["no_matching_skill_in_current_set"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Several skills (e.g.,
manual-testing) hard-code your local Windows paths and PowerShell usage (d:\code\twig-test-dir,twig.exe), which will be confusing or unusable on other environments—consider expressing paths relative to the repo and either making commands shell-agnostic or explicitly scoping the skill to Windows/PowerShell in the description. - The
pull-requestsskill is not mentioned in the PR description’s skills list; if it’s intended to be a first-class workflow skill like the others, consider updating the summary/README so it’s discoverable alongside the existing development skills.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Several skills (e.g., `manual-testing`) hard-code your local Windows paths and PowerShell usage (`d:\code\twig-test-dir`, `twig.exe`), which will be confusing or unusable on other environments—consider expressing paths relative to the repo and either making commands shell-agnostic or explicitly scoping the skill to Windows/PowerShell in the description.
- The `pull-requests` skill is not mentioned in the PR description’s skills list; if it’s intended to be a first-class workflow skill like the others, consider updating the summary/README so it’s discoverable alongside the existing development skills.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
- Add 11 SKILL.md files covering branching, building, cascading, debugging, installing, linting, manual-testing, pull-requests, stacking, testing - Structured skill definitions for AI-assisted development workflows
bkrupa
force-pushed
the
feature/agent-skills
branch
from
February 25, 2026 17:05
e606f44 to
0b8b287
Compare
- cascading: remove fabricated --force-push, --no-interactive, --skip-commits flags; add real --preview flag; rewrite force-pushing section to use git push --force-with-lease - branching: replace twig branch reparent/clear (nonexistent) with twig adopt; add Adopting orphaned branches section with real flags; remove twig dashboard alias - stacking: remove fabricated --no-interactive/--skip-commits rebase options; replace twig dashboard with twig tree + github pr commands - pull-requests: remove Dashboard view section and twig dashboard alias; fix cascade force-push to manual push; fix 'make all' description (fmt + lint + test, not + build + validate) - manual-testing: remove twig tree --simple/--all (nonexistent); remove twig dashboard test section; add path portability note - debugging: twig self diagnostics -> twig self diagnose - testing: fix integration test file list (remove nonexistent files, add missing ones, remove PowerShell scripts); add doc-test exception note for cargo test --doc - linting: add Workspace-level lint bans section documenting the 7 denied lints (unwrap_used, panic, print_stdout, etc.) - building: add plugins/twig-prune to workspace structure list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 11 structured SKILL.md files in
.skills/directory, providing AI-assisted development workflow definitions for:Each skill file defines inputs, steps, and expected outcomes for common development tasks.
Files changed
.skills/README.md- Skills index.skills/branching/SKILL.md.skills/building/SKILL.md.skills/cascading/SKILL.md.skills/debugging/SKILL.md.skills/installing/SKILL.md.skills/linting/SKILL.md.skills/manual-testing/SKILL.md.skills/pull-requests/SKILL.md.skills/stacking/SKILL.md.skills/testing/SKILL.md