[#365] refactor: relocate skill-conventions into guidelines (technical-standards/ai-development)#370
Conversation
…-standards/ai-development Move the cohesive skill-conventions/ folder from the .pair/knowledge/ root into guidelines/technical-standards/ai-development/skill-conventions/ so the single-source skill-corpus conventions live where guidelines belong — catalogued, discoverable, registered. Pure relocation, no content change. - T1: git mv the 9-file folder (dataset) as a cohesive unit - T2: rewrite every reference to the old path — 41 dataset SKILL.md/support files (canonical form, ../ prefix preserved), the writing-skills.mdx and templates.mdx prose refs, and the two conformance-test path constants (to-issues-triage + template-resolution DATASET_CONVENTIONS); also fix the outward links the move broke (way-of-working-pm-resolution.md +3 depth, context-map-maintenance.md relative refs the grep for the root path missed) - T3: register the section in ai-development/README.md, guidelines/README.md, and the docs-site guidelines-catalog.mdx - T4: regenerate the root mirror via pair update (link-rewriter reconciles .claude depth); prune the stale old root folder the copy-overlay sync can't delete; grep-clean + dual-root check:links green + mirror byte-consistent Refs: #365
Code Review — PR #370Review InformationPR Number: #370 Review SummaryOverall Assessment
Key Changes SummaryCohesive relocation of the 9-file Business Value ValidationConfirmed: single-source skill-corpus conventions now live under Acceptance Criteria Verification (independently re-run)
Additional independent checks: old folder removed in both trees; new folder = 10 files (README + 9) in both trees; Code Review Checklist
Security ReviewNot applicable — pure file relocation + link rewrite. No authn/authz/secrets/PII/untrusted input. Verdict: green (0 findings, 0 introduced). Testing ReviewDetailed Review CommentsPositive Feedback
Minor Issues 💡
Questions ❓ / By-design note
Risk AssessmentClassification Definition of DoneAll DoD items satisfied: relocation cohesive, mirror regenerated, references rewritten, 3 catalogs registered, grep-clean, Decision: APPROVED WITH COMMENTS. All 4 acceptance criteria independently verified against the code; all quality gates green; byte-consistency confirmed. The single Minor item (PR-body inaccuracy) is non-blocking. Merge is the human gate — not performed by this review. |
Remediation — round 1 (commit
|
Pull Request Information
PR Title: [#365] refactor: relocate skill-conventions into guidelines (technical-standards/ai-development)
Story/Epic: #365 (standalone tech-debt, closest precedent #223 under #209; extends #313)
Type: Refactor (pure relocation, no content change)
Priority: P1 (Should-Have)
Summary
What Changed
Moved the cohesive
skill-conventions/folder (10 files — 9 convention files + README) from.pair/knowledge/skill-conventions/to.pair/knowledge/guidelines/technical-standards/ai-development/skill-conventions/— dataset canonical form, root mirror (.pair/knowledge/,.claude/skills/) regenerated viapair update. Rewrote every reference: 39 datasetSKILL.md/support files, 2 non-skill refs (writing-skills.mdxprose,to-issues-triage.test.tspath constant +template-resolution.test.ts), and registered the new location in three catalogs.Why This Change
These are single-source skill-corpus conventions — they belong under
guidelines/, catalogued and discoverable, not sitting as a loose top-level folder that reads as "guidelines dumped at the root." Same class of move as #223 (design rules → code-design guidelines).Story Context
User Story: As a maintainer of the Pair KB, I want the
skill-conventions/files relocated intoguidelines/technical-standards/ai-development/skill-conventions/with every reference rewritten and the section registered in the guidelines catalogs, so these conventions live where guidelines belong.Acceptance Criteria: All 4 ACs in #365 — grep-clean old path, check:links green + mirror byte-consistent + conformance green, registered in 3 catalogs, byte-identical content (renames only).
Changes Made
Implementation Details
git mvthe 10-fileskill-conventions/folder (9 convention files + README, dataset) as a cohesive unit — sibling links untouched (relative, moved together).SKILL.md/support files,writing-skills.mdxprose,to-issues-triage.test.ts+template-resolution.test.tspath constants; fixed two outward links the move broke (way-of-working-pm-resolution.md+3 depth,context-map-maintenance.mdrelative refs).ai-development/README.md,guidelines/README.md, and the docs-siteguidelines-catalog.mdx.node apps/pair-cli/dist/cli.js update --offline --source packages/knowledge-hub/dataset— verified re-running it now produces zero diff (byte-consistent).Files Changed
packages/knowledge-hub/dataset/.pair/knowledge/skill-conventions/**(10 files — 9 convention files + README) →.../guidelines/technical-standards/ai-development/skill-conventions/**(dataset + regenerated root mirror.pair/knowledge/**).SKILL.md/support files + 39 root-mirror copies (.claude/skills/**) — path pointer rewrite only;ai-development/README.md,guidelines/README.md,guidelines-catalog.mdx(registration);writing-skills.mdx,templates.mdx(prose refs);to-issues-triage.test.ts,template-resolution.test.ts(path constants);context-map-maintenance.md(outward relative link fixed by the move);.pair/llms.txt(index regenerated bypair update).Testing
Test Results
Testing Strategy
.pair/knowledge/skill-conventions/across dataset + root + src + docs → zero hits.writing-skills.mdxprose,to-issues-triage.test.tshardcoded constant) — both verified rewritten;next/SKILL.md's depth outlier (../../vs the other 38 at../../../) is handled by the link-rewriter, not hand-counted.knowledge-hub+pair-clisuites green; the two conformance tests updated in this diff (to-issues-triage.test.ts,template-resolution.test.ts) pass against the new path.refine-story-draft-to-ready.test.tswas not changed (it never referencedskill-conventions) — it only ran green as part of the regression suite.Quality Assurance
Code Quality Checklist
Documentation
Documentation Updates
ai-development/README.md,guidelines/README.md, docs-siteguidelines-catalog.mdxwriting-skills.mdxandtemplates.mdxprose referencesRisk Assessment
Classification carried over from refinement:
risk:red(business impact — core KB/skill layer) ·cost:green(pure relocation, no cost signals). Blast radius is wide (~118 files touched) but every change is a mechanical path substitution — no schema/contract/behavior change.pair update --offlineafter commit — zero diff, confirms byte-consistencyReviewer Guide
Testing the Changes
Key Test Scenarios
mainexcept for path/link updates (no prose/content edits).writing-skills.mdx:141andto-issues-triage.test.ts(DATASET_CONVENTIONSconstant + registration assertion) point at the new path.ai-development/README.md,guidelines/README.md,guidelines-catalog.mdx) list the section.Dependencies & Related Work
Follow-up Work
skills-guide.md(same sibling smell, explicitly out of scope here per tech-debt: relocate skill-conventions/ into guidelines (technical-standards/ai-development) #365's Edge Cases note).Pre-Submission Checklist