Skip to content

Consolidate agent guidance for Copilot and Claude Code - #935

Merged
johnml1135 merged 1 commit into
mainfrom
github_to_agents
Jun 11, 2026
Merged

johnml1135 merged 1 commit into
mainfrom
github_to_agents

Conversation

@johnml1135

@johnml1135 johnml1135 commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • move the repo-local skill tree from .github/skills to .claude/skills so Claude Code has one project skill location
  • keep shared standing guidance in AGENTS.md and add CLAUDE.md to import it for Claude Code
  • reserve .github for GitHub-required Copilot surfaces and update prompts, docs, and governance text to point at the new layout

Validation

  • CI: Whitespace check via VS Code task
    • failed in the existing wrapper because Build/Agent/check-whitespace.ps1 tried to read check-results.log when that file was not created
  • git diff --check

This change is Reviewable

Copilot AI review requested due to automatic review settings June 9, 2026 21:09
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates repo-local agent guidance so both GitHub Copilot and Claude Code can rely on the same standing docs (AGENTS.md) while moving Claude-oriented skill workflows into a single .claude/skills/ tree (leaving .github/ for GitHub-required surfaces).

Changes:

  • Introduces CLAUDE.md (importing AGENTS.md) and updates governance/docs to clarify the “shared vs GitHub-required vs Claude-only” split.
  • Updates prompts and workflow docs to reference .claude/skills/* paths instead of .github/skills/*, and adjusts .gitignore accordingly.
  • Adds a large set of Claude skills (including Atlassian helper scripts) under .claude/skills/.

Reviewed changes

Copilot reviewed 17 out of 89 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ReadMe.md Updates documentation to reflect new agent instruction/skill locations.
openspec/config.yaml Updates legacy Jira helper path to .claude/skills.
openspec/AGENTS.md Updates OpenSpec guidance references to .claude/skills.
Docs/workflows/ai-pr-workflow.md Updates Claude skill path references and example commands.
Docs/agent-docs-refresh.md Updates the “core always-on files” and Claude skill placement guidance.
CLAUDE.md Adds Claude entrypoint importing AGENTS.md and describing the new layout.
AGENTS.md Updates shared standing guidance and Jira helper script path.
.gitignore Changes ignored env-file pattern from .github/skills/**/.env to .claude/skills/**/.env.
.github/skills/atlassian-skills/.env.example Removes old .github/skills env example (migration to .claude).
.github/skills/atlassian-readonly-skills/.env.example Removes old .github/skills env example (migration to .claude).
.github/prompts/respond-to-review-comments.prompt.md Updates prompt to reference .claude/skills/respond-to-review-comments.
.github/prompts/pr-preflight.prompt.md Updates prompt to reference .claude/skills/pr-preflight.
.github/copilot-instructions.md Clarifies shared vs GitHub-required vs Claude-only guidance locations.
.github/AI_GOVERNANCE.md Updates governance taxonomy and “source of truth” rules for the new layout.
.github/AGENTS.md Repositions .github/ as GitHub compatibility surfaces; links to .claude skills.
.claude/skills/verify-test/SKILL.md Adds Claude verification workflow skill.
.claude/skills/smart-screenshot-capture/SKILL.md Adds screenshot-capture workflow skill.
.claude/skills/rubric-verify/SKILL.md Adds rubric-based verification workflow skill.
.claude/skills/review/SKILL.md Adds general review workflow skill.
.claude/skills/respond-to-review-comments/SKILL.md Adds guided review-comment response workflow skill.
.claude/skills/powershell/SKILL.md Adds PowerShell best-practices skill.
.claude/skills/plan-design/SKILL.md Adds planning/design workflow skill.
.claude/skills/openspec-verify-change/SKILL.md Adds OpenSpec verify workflow skill.
.claude/skills/openspec-sync-specs/SKILL.md Adds OpenSpec spec-sync workflow skill.
.claude/skills/openspec-propose-change/SKILL.md Adds OpenSpec propose workflow skill.
.claude/skills/openspec-new-change/SKILL.md Adds OpenSpec new-change workflow skill.
.claude/skills/openspec-ff-change/SKILL.md Adds OpenSpec fast-forward workflow skill.
.claude/skills/openspec-explore/SKILL.md Adds OpenSpec explore-mode skill.
.claude/skills/openspec-continue-change/SKILL.md Adds OpenSpec continue workflow skill.
.claude/skills/openspec-bulk-archive-change/SKILL.md Adds OpenSpec bulk-archive workflow skill.
.claude/skills/openspec-archive-change/SKILL.md Adds OpenSpec archive workflow skill.
.claude/skills/openspec-apply-change/SKILL.md Adds OpenSpec apply/implementation workflow skill.
.claude/skills/jira-bugfix/SKILL.md Updates Jira-bugfix skill to use .claude/skills Atlassian scripts.
.claude/skills/grill-with-docs/SKILL.md Adds shared-language/terminology refinement skill.
.claude/skills/fieldworks-winapp/SKILL.md Adds FieldWorks WinForms/WinApp automation skill index.
.claude/skills/fieldworks-winapp/references/research.md Adds rationale/research notes for the WinApp skill structure.
.claude/skills/fieldworks-winapp/references/mcp-selection.md Adds MCP driver selection guidance.
.claude/skills/fieldworks-winapp/references/how-to-update.md Adds maintenance/update checklist for navigation paths.
.claude/skills/fieldworks-winapp/navigation/writing-system-font-options.md Adds a navigation path for Writing System font options.
.claude/skills/fieldworks-winapp/navigation/styles-font-tab.md Adds a navigation path for Styles dialog font tab.
.claude/skills/fieldworks-winapp/navigation/screenshot-evidence.md Adds a navigation path for collecting screenshot evidence.
.claude/skills/fieldworks-winapp/navigation/project-loading.md Adds a navigation path for restoring/loading sample projects.
.claude/skills/fieldworks-winapp/navigation/launch-or-attach.md Adds a navigation path for launching/attaching to FieldWorks.
.claude/skills/execute-implement/SKILL.md Adds minimal-scope implementation workflow skill.
.claude/skills/atlassian-skills/SKILL.md Updates Atlassian skill docs/examples to .claude/skills paths.
.claude/skills/atlassian-skills/scripts/jira_worklog.py Adds Jira worklog helper module.
.claude/skills/atlassian-skills/scripts/jira_workflow.py Adds Jira workflow helper module.
.claude/skills/atlassian-skills/scripts/jira_users.py Adds Jira user helper module.
.claude/skills/atlassian-skills/scripts/jira_search.py Adds Jira search helper module.
.claude/skills/atlassian-skills/scripts/jira_projects.py Adds Jira projects/versions helper module.
.claude/skills/atlassian-skills/scripts/jira_links.py Adds Jira link helper module.
.claude/skills/atlassian-skills/scripts/jira_issues.py Adds Jira issue helper module.
.claude/skills/atlassian-skills/scripts/confluence_search.py Adds Confluence search helper module.
.claude/skills/atlassian-skills/scripts/confluence_pages.py Adds Confluence page helper module.
.claude/skills/atlassian-skills/scripts/confluence_labels.py Adds Confluence label helper module.
.claude/skills/atlassian-skills/scripts/confluence_comments.py Adds Confluence comment helper module.
.claude/skills/atlassian-skills/scripts/bitbucket_projects.py Adds Bitbucket project/repo helper module.
.claude/skills/atlassian-skills/scripts/bitbucket_files.py Adds Bitbucket file/search helper module.
.claude/skills/atlassian-skills/scripts/bitbucket_commits.py Adds Bitbucket commit helper module.
.claude/skills/atlassian-skills/scripts/init.py Adds scripts package marker/version.
.claude/skills/atlassian-skills/requirements.txt Adds Python deps for Atlassian scripts.
.claude/skills/atlassian-readonly-skills/SKILL.md Updates read-only Atlassian skill docs/examples to .claude/skills paths.
.claude/skills/atlassian-readonly-skills/scripts/jira_worklog.py Adds read-only Jira worklog helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_workflow.py Adds read-only Jira workflow helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_users.py Adds read-only Jira user helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_search.py Adds read-only Jira search helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_projects.py Adds read-only Jira projects/versions helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_links.py Adds read-only Jira links helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_issues.py Adds read-only Jira issue helper module.
.claude/skills/atlassian-readonly-skills/scripts/jira_agile.py Adds read-only Jira agile helper module.
.claude/skills/atlassian-readonly-skills/scripts/confluence_search.py Adds read-only Confluence search helper module.
.claude/skills/atlassian-readonly-skills/scripts/confluence_pages.py Adds read-only Confluence page helper module.
.claude/skills/atlassian-readonly-skills/scripts/confluence_labels.py Adds read-only Confluence label helper module.
.claude/skills/atlassian-readonly-skills/scripts/confluence_comments.py Adds read-only Confluence comment helper module.
.claude/skills/atlassian-readonly-skills/scripts/bitbucket_pull_requests.py Adds read-only Bitbucket PR helper module.
.claude/skills/atlassian-readonly-skills/scripts/bitbucket_projects.py Adds read-only Bitbucket project/repo helper module.
.claude/skills/atlassian-readonly-skills/scripts/bitbucket_files.py Adds read-only Bitbucket file/search helper module.
.claude/skills/atlassian-readonly-skills/scripts/bitbucket_commits.py Adds read-only Bitbucket commit helper module.
.claude/skills/atlassian-readonly-skills/scripts/init.py Adds scripts package marker.
.claude/skills/atlassian-readonly-skills/requirements.txt Adds Python deps for read-only Atlassian scripts.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   11m 28s ⏱️ - 1m 1s
4 251 tests ±0  4 178 ✅ ±0  73 💤 ±0  0 ❌ ±0 
4 260 runs  ±0  4 187 ✅ ±0  73 💤 ±0  0 ❌ ±0 

Results for commit 8c0ba48. ± Comparison against base commit e6976c5.

@jasonleenaylor jasonleenaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jasonleenaylor partially reviewed 90 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on johnml1135).


.claude/skills/atlassian-readonly-skills/scripts/__init__.py at r1 (raw file):
Hmm, look at this later for cleanup?

@johnml1135
johnml1135 merged commit d1a9bc6 into main Jun 11, 2026
8 checks passed
@johnml1135
johnml1135 deleted the github_to_agents branch June 11, 2026 10:12
johnml1135 added a commit that referenced this pull request Aug 29, 2026
The previous commit fixed the two modules a skill documented a workaround for.
Checking the rest found twelve of sixteen read-only modules failing to import,
so this finishes the job and records where the breakage came from.

It came from us. Upstream langpingxue/atlassian-skills is correct: its
read-only jira_workflow.py imports both Optional and AtlassianCredentials.
Our copies arrived in one commit, d1a9bc6 (PR #935), with names deleted from
the import lists -- the signature of an automated unused-import pass that did
not understand names used only inside annotations. Nine modules lost
AtlassianCredentials, five also lost Optional, and jira_projects.py lost
NotFoundError, which import alone does not catch because it is raised inside a
function body. Eight modules are restored to upstream's imports verbatim; the
diff against upstream is now empty for all of them.

The four bitbucket modules are a different defect, and this one is upstream's:
they use "from ._common import", a relative import, in both variants. That can
never resolve under the invocation every SKILL.md documents, which inserts the
scripts directory on sys.path and imports the module directly. They now use the
absolute import and the path shim that the other fourteen modules already use.
This diverges from upstream deliberately, and is worth sending back to them.

Verified: all 33 modules across both variants import, pyflakes reports no
undefined name in either, and five modules that previously raised NameError on
import -- jira_workflow, jira_links, jira_projects, jira_worklog, jira_agile --
were called against live Jira and returned data. Only Jira is configured in
this environment, so the Confluence and Bitbucket modules are verified
statically rather than end to end.

Left alone deliberately: _common.py sets ssl_verify to False where upstream
sets True. That is a local change, not vendoring damage, and reverting it
without knowing why it was made would break every call this repo makes.
johnml1135 added a commit that referenced this pull request Aug 31, 2026
Agent-authored LT tickets put good analysis in the wrong shape. The
reference failure opens with a heading, runs past a thousand words,
and states that it contains four separate user-visible problems, so a
triager scanning a queue cannot act on it.

Jira Data Center has no expand macro, so nothing in a description can
be folded away. The skill keeps the description short and moves the
depth into the first comment.

The skill interviews for who, when, where and how under a cap of six
questions, hunts duplicates before drafting rather than before
posting, and gets a three-line lede approved before anything else is
written. Unknowns are recorded rather than guessed, and nothing enters
a description that the reporter did not say or that we did not verify.

compact-style.md is a shared reference adapting the MIT-licensed
i-have-adhd skill from chat turns to written artifacts. pr-pitch now
points at it and gains a Start here line, numbered verification steps,
a closing Next line, an optional status line for long-lived PRs, and
the pre-send check.

jira-bugfix gains the LT-XXXXX-short-slug branch convention, a relaxed
worktree rule that asks rather than refuses, and a note that it is
entered at Step 3 when jira-issue hands off.

Evidence and screenshot handling is deliberately absent; it follows in
a stacked branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Skip ticket sections that do not apply to the subject

Not every LT ticket is about FLEx the product. One about developer
tooling, an agent skill, the build or documentation has no FLEx version,
no project file, no menu path and nothing to reproduce inside the
application.

Phase 0b now decides what kind of thing the ticket is about before the
interview starts, and maps that to the environment questions worth
asking. Asking which FLEx build was running, for a ticket about a
Markdown reference file, spends one of six questions and signals that
the ticket was generated rather than written.

The output rule is the same: never emit a section that does not apply. A
template dutifully filled with N/A costs the reader the same scan and
returns nothing, so the heading goes instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Move the design record from the tree into the PR body

The design document was a working artifact, not something a future
maintainer needs in order to change this code correctly. Under the
pr-pitch triage it is RESEARCH: a one-time investigation whose
conclusions are now carried by the skill itself.

Its content survives in the pull request body, where the decisions, the
rejected alternatives and the reasoning stay recoverable without
shipping scaffolding into the repository.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Require Affects Version FW 9.3 on every new ticket

Every new LT ticket carries Affects Version FW 9.3, with no exception.
It is a filing convention that keeps the queue filterable rather than a
claim about which build the reporter was running, so the Phase 0b
relevance rule does not exempt a tooling, build or documentation ticket
from it. A specific point release the reporter names is added alongside
FW 9.3, never in place of it.

Neither jira_create_issue nor jira_update_issue exposes the versions
field, so it goes through custom_fields. The same applies to assignee,
which those helpers send as a Cloud-style accountId that SIL's Data
Center rejects; both fallbacks are now written down where the publish
step needs them.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Point the worked example at the tickets it actually produced

The example carried placeholder keys for the four symptom tickets that
splitting LT-22715 would create. Those tickets now exist, filed on
2026-08-21 as LT-22724 through LT-22727 and linked back with Issue
split, so the example names them.

A worked example that cites real tickets can be checked by a reader.
One that cites LT-AAAAA cannot, and quietly invites the reader to treat
the whole example as hypothetical.

Refs LT-22715, LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Halve the always-loaded skill and record the traps that bit us

SKILL.md goes from 224 lines to 95. It is the only file loaded every
time the skill triggers, so every line it holds is context spent whether
or not the reader needs it. Mechanics move to references, which load
when the phase that needs them is reached.

Moved out: the four duplicate-search passes to a new duplicates.md, the
publish calls to publish.md, the relevance table to format.md. What
stays is the phase table, the two gates, the budgets and the traps.

Recorded from the retroactive rewrite of 28 tickets:

- Link types must be read, never guessed. There is no Relates in this
  Jira, and falling back to the first name in the list produced four
  bogus Cloners links between a cause ticket and its children.
- resolution cannot be set by an update, only by a transition.
- The read-only skill's jira_workflow.py and jira_projects.py raise
  NameError on import; use the atlassian-skills copies.
- A private Gmail or Drive URL in a description is broken evidence.
- Rewriting a ticket posts the original as a comment first.

Task-type tickets gain their own lede labels. Two of the rewritten
tickets were Tasks and had to improvise them.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Add evidence framework for screenshots in PRs and Jira issues

A visible change should ship with a picture, and the repo already has
the hard half: headless Skia capture for Avalonia, MCP capture for
WinForms, and an Output/ManualEvidence naming convention. What was
missing is the last mile -- trimming, captioning, provenance labelling,
and any route at all from a PNG to a PR body or a ticket.

The rule evidence.md turns on is that the test is the evidence and the
screenshot is the courtesy. A control-level headless capture is not a
screenshot of the product, and every image now says which it is.

Publishing probes three routes and reports the one it used: native gh
attach once it ships, gh image where a session cookie is reachable, and
an orphan evidence branch with sha-pinned raw URLs otherwise. Only the
third works under an Actions token, which is why it stays.

jira_add_attachment uploads to Jira. It drives client.session directly
because AtlassianClient.post sends JSON only, while multipart needs the
XSRF header and no Content-Type. Its validation paths are exercised; the
upload path has not yet been run against a live issue.

A screenshot of a live project is a data disclosure exactly as a project
file is, so the permission gate covers both.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Fix a reference path that does not resolve from its own file

evidence.md sits in .claude/references/ and pointed at
fieldworks-avalonia-ui/references/visual-snapshot-testing.md as if it
were a sibling. The file is under .claude/skills/, so the pointer
resolved from nowhere. Made absolute from the repo root.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Drop the orphan evidence branch from the publish routes

The third upload route proposed creating a never-merged orphan branch to
host screenshots and referencing them by sha-pinned raw URL. It was
speculative, nothing had been built, and it solved a problem lasting one
review by putting binaries in history permanently.

Route three is now the honest one: when no upload path is available, say
which was tried and hand the file to the author to drag in. The skill
also states plainly that images are not committed to the repository and
no side branch is created to host them.

Refs LT-22723

Compress the three workflow skills that carry the most prose

jira-bugfix, pr-preflight and pr-pitch drop from 1107 lines to 374,
about two thirds. A SKILL.md is loaded whole every time its skill
triggers, so every line it holds is context spent whether the reader
needs it or not. Procedure that only one phase needs now lives in a
reference that loads when that phase is reached.

Moved out: the review-summary template, the accordion catalogue, and
the publish-and-verify mechanics.

Deduplicated rather than shortened in place. jira-bugfix carried its own
copy of the JIRA API calls, the assignee and version workarounds, and
the transition rules; it now points at the jira-issue skill's
publish.md. It also delegates commit messages, PR creation and test
coverage to the skills that own them instead of restating them.

Nothing about the guidance changed. The pitch structure, the triage
buckets, the four analysis passes, the interview discipline and every
gate survive verbatim or tightened.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Repoint nine skill references that resolved from nowhere

Nine cross-references in the Avalonia migration and WinApp skills were
written relative to the skill root while the citing file lives inside
references/, so they resolved to references/references/<name>.md and
pointed at nothing. Every target exists; only the paths were wrong.

Seven become plain sibling names, which is what a file inside
references/ needs to reach the file next to it. Two genuinely cross
skill boundaries and become repo-root paths: winforms-avalonia-parity
cites parity-evidence in the migration skill, and architecture-patterns
cites style-system in the Avalonia UI skill.

Nothing else changed. No prose, no guidance, no file moved or renamed.

Verified by resolving every reference in every .claude markdown file
from the directory it is written in: nine dangling before, none after.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Repair two read-only Jira scripts and correct five skill claims

Review of this PR raised seven items. Six were confirmed against the tree and
are fixed here; the seventh was backwards and is answered instead.

jira_workflow.py and jira_projects.py under atlassian-readonly-skills were
missing two names their own signatures use, Optional and AtlassianCredentials,
so both raised NameError on import. The class is already defined in the
read-only _common.py -- the vendoring generator dropped it from each module's
import list. Both now import, and were run against live Jira. The workaround
telling jira-issue to route around them is deleted: it contradicted AGENTS.md,
which names the read-only scripts as the route for reads.

Ten further read-only modules still fail to import, from the same generator bug
plus a relative-import class in the bitbucket ones. They are left to the
Atlassian transport PR that this branch already defers to.

Also: pr-preflight names the review model again, so the summary template's
field has an owner, and is told never to invent a co-author trailer; pr-pitch
hoists the Start here line to the top of the body, where its own checklist
already required it; jira-issue counts three gates rather than two, because
Phase 5 permission is equally a hard stop; and the assignee username and
Affects Version are derived from the prefs file and Src/MasterVersionInfo.txt
rather than frozen as one developer's name and one release.

Worktree paths in jira-bugfix and dependabot-consolidation now point at
Worktree-CreateFromBranch.ps1 instead of naming a directory. The review placed
worktrees under .claude/worktrees; that path does not exist, and all twelve on
disk are under .tmp/worktrees, so no fixed path written here stays true.

Repair all twelve broken Atlassian modules in both skill variants

The previous commit fixed the two modules a skill documented a workaround for.
Checking the rest found twelve of sixteen read-only modules failing to import,
so this finishes the job and records where the breakage came from.

It came from us. Upstream langpingxue/atlassian-skills is correct: its
read-only jira_workflow.py imports both Optional and AtlassianCredentials.
Our copies arrived in one commit, d1a9bc6 (PR #935), with names deleted from
the import lists -- the signature of an automated unused-import pass that did
not understand names used only inside annotations. Nine modules lost
AtlassianCredentials, five also lost Optional, and jira_projects.py lost
NotFoundError, which import alone does not catch because it is raised inside a
function body. Eight modules are restored to upstream's imports verbatim; the
diff against upstream is now empty for all of them.

The four bitbucket modules are a different defect, and this one is upstream's:
they use "from ._common import", a relative import, in both variants. That can
never resolve under the invocation every SKILL.md documents, which inserts the
scripts directory on sys.path and imports the module directly. They now use the
absolute import and the path shim that the other fourteen modules already use.
This diverges from upstream deliberately, and is worth sending back to them.

Verified: all 33 modules across both variants import, pyflakes reports no
undefined name in either, and five modules that previously raised NameError on
import -- jira_workflow, jira_links, jira_projects, jira_worklog, jira_agile --
were called against live Jira and returned data. Only Jira is configured in
this environment, so the Confluence and Bitbucket modules are verified
statically rather than end to end.

Left alone deliberately: _common.py sets ssl_verify to False where upstream
sets True. That is a local change, not vendoring damage, and reverting it
without knowing why it was made would break every call this repo makes.

Revert the wider Atlassian repair, which PR #1101 already covers

The previous commit repaired all twelve broken modules in both vendored
Atlassian variants. That was the wrong call twice over, and this reverts it.

PR #1101 is open on branch atlassian-skills-fix and already fixes this. It goes
further: it deletes the Bitbucket and Confluence modules outright, reducing both
variants to Jira, and adds a PROVENANCE.md to each. Eleven of the fifteen files
the previous commit touched are files #1101 removes, so the repair was work
against a deletion, and would have conflicted on merge.

The stated cause was also wrong. The names were not pruned locally when we
vendored. Upstream introduced the bug in cdd1823f6 (2025-12-20) and fixed it in
0fafb48e7, "Fix missing imports in readonly variant scripts" (2026-02-10). Our
copy is byte-identical to the pre-fix upstream state, and d1a9bc6 vendored it
in 2026-06-11 -- four months after upstream had fixed it. So this is a stale
snapshot, and the correct remedy is a re-sync from upstream rather than
hand-patching, which is close to what #1101 does.

Kept from the reverted commit: one line in the read-only jira_projects.py,
which also lost NotFoundError. It is raised at :179, inside a function body, so
importing the module successfully does not prove it works -- and this branch
does claim to fix that module, because it deletes the documented workaround for
it. The other fourteen files are back to their vendored state.

This branch now touches exactly two vendored files, jira_workflow.py and
jira_projects.py, which is the minimum for deleting a workaround that named
them. Those two lines overlap #1101; whichever merges second takes a two-line
conflict.
johnml1135 added a commit that referenced this pull request Sep 10, 2026
…1100)

* Add jira-issue skill and compact style for issues and PR bodies

Agent-authored LT tickets put good analysis in the wrong shape. The
reference failure opens with a heading, runs past a thousand words,
and states that it contains four separate user-visible problems, so a
triager scanning a queue cannot act on it.

Jira Data Center has no expand macro, so nothing in a description can
be folded away. The skill keeps the description short and moves the
depth into the first comment.

The skill interviews for who, when, where and how under a cap of six
questions, hunts duplicates before drafting rather than before
posting, and gets a three-line lede approved before anything else is
written. Unknowns are recorded rather than guessed, and nothing enters
a description that the reporter did not say or that we did not verify.

compact-style.md is a shared reference adapting the MIT-licensed
i-have-adhd skill from chat turns to written artifacts. pr-pitch now
points at it and gains a Start here line, numbered verification steps,
a closing Next line, an optional status line for long-lived PRs, and
the pre-send check.

jira-bugfix gains the LT-XXXXX-short-slug branch convention, a relaxed
worktree rule that asks rather than refuses, and a note that it is
entered at Step 3 when jira-issue hands off.

Evidence and screenshot handling is deliberately absent; it follows in
a stacked branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Skip ticket sections that do not apply to the subject

Not every LT ticket is about FLEx the product. One about developer
tooling, an agent skill, the build or documentation has no FLEx version,
no project file, no menu path and nothing to reproduce inside the
application.

Phase 0b now decides what kind of thing the ticket is about before the
interview starts, and maps that to the environment questions worth
asking. Asking which FLEx build was running, for a ticket about a
Markdown reference file, spends one of six questions and signals that
the ticket was generated rather than written.

The output rule is the same: never emit a section that does not apply. A
template dutifully filled with N/A costs the reader the same scan and
returns nothing, so the heading goes instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Move the design record from the tree into the PR body

The design document was a working artifact, not something a future
maintainer needs in order to change this code correctly. Under the
pr-pitch triage it is RESEARCH: a one-time investigation whose
conclusions are now carried by the skill itself.

Its content survives in the pull request body, where the decisions, the
rejected alternatives and the reasoning stay recoverable without
shipping scaffolding into the repository.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Require Affects Version FW 9.3 on every new ticket

Every new LT ticket carries Affects Version FW 9.3, with no exception.
It is a filing convention that keeps the queue filterable rather than a
claim about which build the reporter was running, so the Phase 0b
relevance rule does not exempt a tooling, build or documentation ticket
from it. A specific point release the reporter names is added alongside
FW 9.3, never in place of it.

Neither jira_create_issue nor jira_update_issue exposes the versions
field, so it goes through custom_fields. The same applies to assignee,
which those helpers send as a Cloud-style accountId that SIL's Data
Center rejects; both fallbacks are now written down where the publish
step needs them.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Point the worked example at the tickets it actually produced

The example carried placeholder keys for the four symptom tickets that
splitting LT-22715 would create. Those tickets now exist, filed on
2026-08-21 as LT-22724 through LT-22727 and linked back with Issue
split, so the example names them.

A worked example that cites real tickets can be checked by a reader.
One that cites LT-AAAAA cannot, and quietly invites the reader to treat
the whole example as hypothetical.

Refs LT-22715, LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Halve the always-loaded skill and record the traps that bit us

SKILL.md goes from 224 lines to 95. It is the only file loaded every
time the skill triggers, so every line it holds is context spent whether
or not the reader needs it. Mechanics move to references, which load
when the phase that needs them is reached.

Moved out: the four duplicate-search passes to a new duplicates.md, the
publish calls to publish.md, the relevance table to format.md. What
stays is the phase table, the two gates, the budgets and the traps.

Recorded from the retroactive rewrite of 28 tickets:

- Link types must be read, never guessed. There is no Relates in this
  Jira, and falling back to the first name in the list produced four
  bogus Cloners links between a cause ticket and its children.
- resolution cannot be set by an update, only by a transition.
- The read-only skill's jira_workflow.py and jira_projects.py raise
  NameError on import; use the atlassian-skills copies.
- A private Gmail or Drive URL in a description is broken evidence.
- Rewriting a ticket posts the original as a comment first.

Task-type tickets gain their own lede labels. Two of the rewritten
tickets were Tasks and had to improvise them.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Add evidence framework for screenshots in PRs and Jira issues

A visible change should ship with a picture, and the repo already has
the hard half: headless Skia capture for Avalonia, MCP capture for
WinForms, and an Output/ManualEvidence naming convention. What was
missing is the last mile -- trimming, captioning, provenance labelling,
and any route at all from a PNG to a PR body or a ticket.

The rule evidence.md turns on is that the test is the evidence and the
screenshot is the courtesy. A control-level headless capture is not a
screenshot of the product, and every image now says which it is.

Publishing probes three routes and reports the one it used: native gh
attach once it ships, gh image where a session cookie is reachable, and
an orphan evidence branch with sha-pinned raw URLs otherwise. Only the
third works under an Actions token, which is why it stays.

jira_add_attachment uploads to Jira. It drives client.session directly
because AtlassianClient.post sends JSON only, while multipart needs the
XSRF header and no Content-Type. Its validation paths are exercised; the
upload path has not yet been run against a live issue.

A screenshot of a live project is a data disclosure exactly as a project
file is, so the permission gate covers both.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Fix a reference path that does not resolve from its own file

evidence.md sits in .claude/references/ and pointed at
fieldworks-avalonia-ui/references/visual-snapshot-testing.md as if it
were a sibling. The file is under .claude/skills/, so the pointer
resolved from nowhere. Made absolute from the repo root.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Drop the orphan evidence branch from the publish routes

The third upload route proposed creating a never-merged orphan branch to
host screenshots and referencing them by sha-pinned raw URL. It was
speculative, nothing had been built, and it solved a problem lasting one
review by putting binaries in history permanently.

Route three is now the honest one: when no upload path is available, say
which was tried and hand the file to the author to drag in. The skill
also states plainly that images are not committed to the repository and
no side branch is created to host them.

Refs LT-22723

Compress the three workflow skills that carry the most prose

jira-bugfix, pr-preflight and pr-pitch drop from 1107 lines to 374,
about two thirds. A SKILL.md is loaded whole every time its skill
triggers, so every line it holds is context spent whether the reader
needs it or not. Procedure that only one phase needs now lives in a
reference that loads when that phase is reached.

Moved out: the review-summary template, the accordion catalogue, and
the publish-and-verify mechanics.

Deduplicated rather than shortened in place. jira-bugfix carried its own
copy of the JIRA API calls, the assignee and version workarounds, and
the transition rules; it now points at the jira-issue skill's
publish.md. It also delegates commit messages, PR creation and test
coverage to the skills that own them instead of restating them.

Nothing about the guidance changed. The pitch structure, the triage
buckets, the four analysis passes, the interview discipline and every
gate survive verbatim or tightened.

Refs LT-22723

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Repoint nine skill references that resolved from nowhere

Nine cross-references in the Avalonia migration and WinApp skills were
written relative to the skill root while the citing file lives inside
references/, so they resolved to references/references/<name>.md and
pointed at nothing. Every target exists; only the paths were wrong.

Seven become plain sibling names, which is what a file inside
references/ needs to reach the file next to it. Two genuinely cross
skill boundaries and become repo-root paths: winforms-avalonia-parity
cites parity-evidence in the migration skill, and architecture-patterns
cites style-system in the Avalonia UI skill.

Nothing else changed. No prose, no guidance, no file moved or renamed.

Verified by resolving every reference in every .claude markdown file
from the directory it is written in: nine dangling before, none after.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Repair two read-only Jira scripts and correct five skill claims

Review of this PR raised seven items. Six were confirmed against the tree and
are fixed here; the seventh was backwards and is answered instead.

jira_workflow.py and jira_projects.py under atlassian-readonly-skills were
missing two names their own signatures use, Optional and AtlassianCredentials,
so both raised NameError on import. The class is already defined in the
read-only _common.py -- the vendoring generator dropped it from each module's
import list. Both now import, and were run against live Jira. The workaround
telling jira-issue to route around them is deleted: it contradicted AGENTS.md,
which names the read-only scripts as the route for reads.

Ten further read-only modules still fail to import, from the same generator bug
plus a relative-import class in the bitbucket ones. They are left to the
Atlassian transport PR that this branch already defers to.

Also: pr-preflight names the review model again, so the summary template's
field has an owner, and is told never to invent a co-author trailer; pr-pitch
hoists the Start here line to the top of the body, where its own checklist
already required it; jira-issue counts three gates rather than two, because
Phase 5 permission is equally a hard stop; and the assignee username and
Affects Version are derived from the prefs file and Src/MasterVersionInfo.txt
rather than frozen as one developer's name and one release.

Worktree paths in jira-bugfix and dependabot-consolidation now point at
Worktree-CreateFromBranch.ps1 instead of naming a directory. The review placed
worktrees under .claude/worktrees; that path does not exist, and all twelve on
disk are under .tmp/worktrees, so no fixed path written here stays true.

Repair all twelve broken Atlassian modules in both skill variants

The previous commit fixed the two modules a skill documented a workaround for.
Checking the rest found twelve of sixteen read-only modules failing to import,
so this finishes the job and records where the breakage came from.

It came from us. Upstream langpingxue/atlassian-skills is correct: its
read-only jira_workflow.py imports both Optional and AtlassianCredentials.
Our copies arrived in one commit, d1a9bc6 (PR #935), with names deleted from
the import lists -- the signature of an automated unused-import pass that did
not understand names used only inside annotations. Nine modules lost
AtlassianCredentials, five also lost Optional, and jira_projects.py lost
NotFoundError, which import alone does not catch because it is raised inside a
function body. Eight modules are restored to upstream's imports verbatim; the
diff against upstream is now empty for all of them.

The four bitbucket modules are a different defect, and this one is upstream's:
they use "from ._common import", a relative import, in both variants. That can
never resolve under the invocation every SKILL.md documents, which inserts the
scripts directory on sys.path and imports the module directly. They now use the
absolute import and the path shim that the other fourteen modules already use.
This diverges from upstream deliberately, and is worth sending back to them.

Verified: all 33 modules across both variants import, pyflakes reports no
undefined name in either, and five modules that previously raised NameError on
import -- jira_workflow, jira_links, jira_projects, jira_worklog, jira_agile --
were called against live Jira and returned data. Only Jira is configured in
this environment, so the Confluence and Bitbucket modules are verified
statically rather than end to end.

Left alone deliberately: _common.py sets ssl_verify to False where upstream
sets True. That is a local change, not vendoring damage, and reverting it
without knowing why it was made would break every call this repo makes.

Revert the wider Atlassian repair, which PR #1101 already covers

The previous commit repaired all twelve broken modules in both vendored
Atlassian variants. That was the wrong call twice over, and this reverts it.

PR #1101 is open on branch atlassian-skills-fix and already fixes this. It goes
further: it deletes the Bitbucket and Confluence modules outright, reducing both
variants to Jira, and adds a PROVENANCE.md to each. Eleven of the fifteen files
the previous commit touched are files #1101 removes, so the repair was work
against a deletion, and would have conflicted on merge.

The stated cause was also wrong. The names were not pruned locally when we
vendored. Upstream introduced the bug in cdd1823f6 (2025-12-20) and fixed it in
0fafb48e7, "Fix missing imports in readonly variant scripts" (2026-02-10). Our
copy is byte-identical to the pre-fix upstream state, and d1a9bc6 vendored it
in 2026-06-11 -- four months after upstream had fixed it. So this is a stale
snapshot, and the correct remedy is a re-sync from upstream rather than
hand-patching, which is close to what #1101 does.

Kept from the reverted commit: one line in the read-only jira_projects.py,
which also lost NotFoundError. It is raised at :179, inside a function body, so
importing the module successfully does not prove it works -- and this branch
does claim to fix that module, because it deletes the documented workaround for
it. The other fourteen files are back to their vendored state.

This branch now touches exactly two vendored files, jira_workflow.py and
jira_projects.py, which is the minimum for deleting a workaround that named
them. Those two lines overlap #1101; whichever merges second takes a two-line
conflict.

* Call the three filing checks checks, not gates

Two occurrences, both in jira-issue: the section heading and the
before-finishing item. "Gates" is not the word the rest of the repo's new
prose uses, and this is the branch that sets those prose rules, so the
word surviving in one of its own headings is the wrong advertisement.

Also replaces the sample worktree path in publish.md with a placeholder.
The example is the one place a reader copies a path from, and worktree
layout is a property of the machine rather than of the repo, so naming
either layout there teaches the wrong thing. The script decides where
worktrees go, which the surrounding text already says.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2cD9xpSzaE8REYqTsi84F

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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