Skip to content

Commit fb1733d

Browse files
committed
Improve Instructions across multiple docs
1 parent 272f1ec commit fb1733d

4 files changed

Lines changed: 548 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.3.4] - 2026-01-13
11+
12+
### Changed
13+
- **Documentation Improvements** - Enhanced cross-referencing and clarity across all documentation
14+
- **README.md:**
15+
- Added "end-to-end execution mode" explanation in AI Agent quick start section
16+
- Expanded Phase 2 (AI Triage) section with workflow steps and TL;DR format details
17+
- Enhanced GitHub Issue Creation section with multi-platform support emphasis
18+
- Added cross-references to AI Instructions for detailed workflows
19+
- Improved Project Templates section with AI auto-completion features
20+
- Added MCP section cross-reference to AI Instructions for triage workflow
21+
- **dist/TEMPLATES/_AI_INSTRUCTIONS.md:**
22+
- Added workflow decision tree diagram for quick navigation
23+
- Added template naming best practices section (lowercase-with-hyphens convention)
24+
- Enhanced template detection logic with variation examples
25+
- Expanded GitHub repository detection with regex patterns and validation rules
26+
- Added "How to Verify" column to false positive patterns table
27+
- Enhanced troubleshooting section with common errors and solutions
28+
- Added comprehensive "Quick Reference for AI Agents" section with:
29+
- Phase-by-phase checklists
30+
- End-to-end execution script
31+
- Key file locations table
32+
- Cross-reference map linking to README sections
33+
- Added confidence level guidance for AI triage assessments
34+
- Enhanced manual JSON to HTML conversion section with features and troubleshooting
35+
- Added multi-platform workflow for GitHub issue bodies (Jira, Linear, Asana, etc.)
36+
- Added quick links to related documentation at top of file
37+
- **Impact:** AI agents and users can now navigate documentation more efficiently with clear cross-references and decision trees
38+
39+
### Technical Details
40+
- **Documentation Version:** AI Instructions now at v2.0
41+
- **Cross-References Added:** 15+ bidirectional links between README and AI Instructions
42+
- **New Sections:** 8 new subsections in AI Instructions for improved clarity
43+
- **Tables Enhanced:** 6 tables expanded with additional columns and examples
44+
1045
## [1.3.3] - 2026-01-13
1146

1247
### Added
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# Documentation Cross-Reference Improvements
2+
3+
**Created:** 2026-01-13
4+
**Completed:** 2026-01-13
5+
**Status:** ✅ Completed
6+
**Version:** 1.3.4
7+
8+
## Summary
9+
10+
Enhanced cross-referencing and clarity across README.md and AI Instructions to improve navigation and usability for both AI agents and human users.
11+
12+
## Implementation
13+
14+
### Files Modified
15+
16+
1. **README.md** - 5 sections enhanced with cross-references
17+
2. **dist/TEMPLATES/_AI_INSTRUCTIONS.md** - Major expansion with 8+ new subsections
18+
3. **CHANGELOG.md** - Documented changes in v1.3.4
19+
20+
### README.md Improvements
21+
22+
#### 1. AI Agent Quick Start Section (Lines 24-36)
23+
**Before:** Basic 2-step instructions
24+
**After:** 3-step workflow with phase breakdown and link to AI Instructions
25+
26+
**Added:**
27+
- End-to-end execution mode mention
28+
- Phase 1/2/3 overview
29+
- Direct link to complete workflow
30+
31+
#### 2. Project Templates Section (Lines 141-158)
32+
**Before:** Basic template usage
33+
**After:** AI agent features highlighted with cross-references
34+
35+
**Added:**
36+
- Auto-completion feature
37+
- Template variations handling
38+
- GitHub integration mention
39+
- Links to both manual guide and AI instructions
40+
41+
#### 3. Phase 2: AI-Assisted Triage (Lines 155-180)
42+
**Before:** Basic feature list
43+
**After:** Complete workflow with TL;DR format explanation
44+
45+
**Added:**
46+
- Workflow steps (4-step process)
47+
- TL;DR format mention
48+
- Cross-reference to AI Instructions Phase 2
49+
50+
#### 4. GitHub Issue Creation (Lines 182-214)
51+
**Before:** Basic usage examples
52+
**After:** Multi-platform support emphasized
53+
54+
**Added:**
55+
- Multi-platform support feature
56+
- Graceful degradation explanation
57+
- Cross-reference to AI Instructions Phase 3
58+
59+
#### 5. MCP Section (Lines 272-281)
60+
**Before:** AI agent instructions only
61+
**After:** Link to complete triage workflow
62+
63+
**Added:**
64+
- Cross-reference to AI Instructions for triage workflow
65+
66+
### AI Instructions Improvements
67+
68+
#### 1. Quick Links Section (Lines 1-7)
69+
**New:** Added navigation links to related docs
70+
- Main README
71+
- Template Guide
72+
- MCP Documentation
73+
74+
#### 2. Workflow Decision Tree (Lines 20-33)
75+
**New:** Visual decision tree for common user requests
76+
- End-to-end execution
77+
- Scan only
78+
- Template completion
79+
- Triage only
80+
- Issue creation only
81+
82+
#### 3. Template Naming Best Practices (Lines 75-111)
83+
**New:** Complete naming convention guide
84+
- Recommended vs. acceptable vs. avoid table
85+
- Rationale for lowercase-with-hyphens
86+
- Template detection logic with variations
87+
- Example search order
88+
89+
#### 4. Enhanced GitHub Repo Detection (Lines 143-212)
90+
**Expanded:** From 9 lines to 70 lines
91+
- Method 1: Plugin/Theme headers with examples
92+
- Method 2: README files with grep commands
93+
- Method 3: Git remote with extraction patterns
94+
- Regex patterns table
95+
- Validation rules (what NOT to do)
96+
- Valid vs. invalid detection examples
97+
98+
#### 5. False Positive Patterns Table (Lines 594-611)
99+
**Enhanced:** Added "How to Verify" column
100+
- Specific verification steps for each pattern
101+
- AI agent tips for context analysis
102+
- Cross-reference to README Quick Scanner section
103+
104+
#### 6. Troubleshooting Section (Lines 654-678)
105+
**Expanded:** From 5 entries to 9 entries
106+
- Added likely cause column
107+
- Platform-specific solutions
108+
- Links to external resources
109+
- "Getting Help" subsection
110+
111+
#### 7. Quick Reference for AI Agents (Lines 680-764)
112+
**New:** Comprehensive 85-line reference section
113+
- Phase-by-phase checklists (5 phases)
114+
- End-to-end execution script
115+
- Key file locations table
116+
- Cross-reference map (6 topics)
117+
- Document version and maintenance info
118+
119+
#### 8. Multi-Platform Workflow (Lines 571-590)
120+
**New:** GitHub issue body reuse guide
121+
- Copy/paste workflow for Jira, Linear, Asana, Trello
122+
- Example commands
123+
124+
## Results
125+
126+
### Metrics
127+
- **Cross-references added:** 15+ bidirectional links
128+
- **New sections:** 8 major subsections in AI Instructions
129+
- **Tables enhanced:** 6 tables with additional columns
130+
- **Documentation version:** AI Instructions now at v2.0
131+
- **Lines added:** ~150 lines of new content
132+
133+
### User Impact
134+
-**Faster navigation** - Users can jump between related sections easily
135+
-**Better discoverability** - Features are cross-referenced from multiple entry points
136+
-**Clearer workflows** - Decision trees and checklists guide AI agents
137+
-**Reduced confusion** - Naming conventions and detection logic clearly documented
138+
-**Improved troubleshooting** - Expanded error table with solutions
139+
140+
### AI Agent Impact
141+
-**Faster task execution** - Checklists prevent missed steps
142+
-**Better template handling** - Clear naming conventions and detection logic
143+
-**Accurate triage** - False positive patterns with verification steps
144+
-**Error recovery** - Comprehensive troubleshooting guide
145+
-**End-to-end automation** - Complete workflow script provided
146+
147+
## Lessons Learned
148+
149+
### What Worked Well
150+
1. **Bidirectional cross-references** - Users can navigate from either document
151+
2. **Decision trees** - Visual guides help AI agents choose correct workflow
152+
3. **Tables with examples** - Concrete examples clarify abstract concepts
153+
4. **Quick reference section** - Consolidates all key information in one place
154+
155+
### Best Practices Established
156+
1. **Always link to detailed docs** - README has overview, AI Instructions has details
157+
2. **Use anchor links** - Enable direct navigation to specific sections
158+
3. **Provide both manual and AI workflows** - Support different user types
159+
4. **Include troubleshooting** - Anticipate common errors and provide solutions
160+
161+
## Related
162+
- [CHANGELOG.md](../../CHANGELOG.md) - Version 1.3.4 entry
163+
- [README.md](../../README.md) - Main user documentation
164+
- [AI Instructions](../dist/TEMPLATES/_AI_INSTRUCTIONS.md) - AI agent workflow guide
165+

README.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ If you're using an AI coding assistant (Cursor, GitHub Copilot, Augment, etc.):
2626

2727
1. Open `dist/TEMPLATES/_AI_INSTRUCTIONS.md` in your editor
2828
2. Ask your AI: **"Please review this document and what can I do with this tool?"**
29+
3. For automated workflows, ask: **"Run template [name] end to end"**
2930

30-
Your VS Code Agent will guide you through scanning WordPress plugins and themes, creating templates, and interpreting results.
31+
Your AI agent will guide you through:
32+
- **Phase 1**: Scanning WordPress plugins/themes (with template auto-completion)
33+
- **Phase 2**: AI-assisted triage to identify false positives
34+
- **Phase 3**: Automated GitHub issue creation
35+
36+
See [AI Instructions](dist/TEMPLATES/_AI_INSTRUCTIONS.md) for the complete end-to-end workflow.
3137

3238
---
3339

@@ -137,14 +143,19 @@ Manage technical debt in legacy codebases:
137143
Save scan configurations for frequently-checked projects:
138144

139145
```bash
140-
# Create template
146+
# Create template (AI agents can auto-complete metadata)
141147
./dist/bin/run my-plugin
142148

143149
# Reuse template
144150
./dist/bin/run my-plugin
145151
```
146152

147-
See [HOWTO-TEMPLATES.md](dist/HOWTO-TEMPLATES.md) for details.
153+
**AI Agent Features:**
154+
-**Auto-completion** - AI extracts plugin name, version, and GitHub repo from headers
155+
-**Template Variations** - Handles hyphens, underscores, spaces in filenames
156+
-**GitHub Integration** - Optional `GITHUB_REPO` field for automated issue creation
157+
158+
See [HOWTO-TEMPLATES.md](dist/HOWTO-TEMPLATES.md) for manual usage or [AI Instructions - Phase 1b](dist/TEMPLATES/_AI_INSTRUCTIONS.md#phase-1b-template-completion-if-needed) for AI-assisted template creation.
148159

149160
### 🤖 **Phase 2: AI-Assisted Triage (v1.1 POC)**
150161

@@ -163,8 +174,15 @@ Validate findings and identify false positives with AI assistance:
163174
-**Confidence Scoring** - Rates overall assessment confidence (high/medium/low)
164175
-**Actionable Recommendations** - Prioritized list of issues to fix
165176
-**Executive Summary** - 3-5 paragraph narrative for stakeholders
177+
-**TL;DR Format** - Summary appears at top of HTML report for quick review
178+
179+
**Workflow:**
180+
1. Run scan with template: `./dist/bin/run [template-name]`
181+
2. AI agent analyzes findings and updates JSON with `ai_triage` section
182+
3. HTML report regenerated with AI summary at top
183+
4. Optionally create GitHub issue with confirmed findings
166184

167-
See [TEMPLATES/_AI_INSTRUCTIONS.md](dist/TEMPLATES/_AI_INSTRUCTIONS.md) for detailed triage workflow.
185+
See [AI Instructions - Phase 2](dist/TEMPLATES/_AI_INSTRUCTIONS.md#phase-2-ai-assisted-triage) for detailed triage workflow and common false positive patterns.
168186

169187
### 🎫 **GitHub Issue Creation**
170188

@@ -192,10 +210,13 @@ Automatically create GitHub issues from scan results with AI triage data:
192210
-**Interactive Preview** - Review before creating the issue
193211
-**Graceful Degradation** - Works without GitHub repo (generates issue body only)
194212
-**Persistent Issue Files** - Saves to `dist/issues/` with matching filename pattern for easy manual copy/paste
213+
-**Multi-Platform Support** - Use issue bodies in Jira, Linear, Asana, Trello, etc.
195214

196215
**Requirements:**
197-
- GitHub CLI (`gh`) installed and authenticated (only for creating issues)
198-
- Scan with AI triage data (`--ai-triage` flag)
216+
- GitHub CLI (`gh`) installed and authenticated (only for automated creation)
217+
- Scan with AI triage data (recommended for best results)
218+
219+
See [AI Instructions - Phase 3](dist/TEMPLATES/_AI_INSTRUCTIONS.md#phase-3-github-issue-creation) for complete workflow and error handling.
199220

200221
### 🔌 **MCP Protocol Support (AI Integration)**
201222

@@ -262,6 +283,8 @@ When analyzing WP Code Check results via MCP:
262283
4. Suggest fixes with code examples
263284
5. Reference specific file paths and line numbers
264285

286+
For complete AI triage workflow and false positive detection patterns, see [AI Instructions](dist/TEMPLATES/_AI_INSTRUCTIONS.md).
287+
265288
---
266289

267290
## 🛠️ Tools Included

0 commit comments

Comments
 (0)