[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C29699CARKBGPMSS5STYVA":3,"skill-same:01M6C29699CARKBGPMSS5STYVA":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6C29699CARKBGPMSS5STYVA","issue-auto-sync","工单引用自动同步","Detect issue references in commits and artifacts and automatically update or close linked tracker issues","检测提交（commit）和工件中的工单引用，自动更新或关闭关联的跟踪器工单。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-auto-sync\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"sync","auto","issue auto sync","issue","auto sync","update","artifacts","issues","commits","tracker","references","close","detect","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: issue-auto-sync\nplatforms: [all]\ndescription: Detect issue references in commits and artifacts and automatically update or close linked tracker issues\n\n---\n\n# issue-auto-sync\n\nAutomatically detect and update linked issues after commits or artifact changes.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"link commits to issues\" → commit-to-issue tracing\n- \"auto-close issues\" → issue auto-closure on commit\n\n## Purpose\n\nThis skill maintains issue tracker synchronization by:\n- Detecting issue references in commit messages\n- Scanning AIWG artifacts for issue mentions\n- Automatically updating issues with progress\n- Closing issues when work is completed\n- Notifying blocked\u002Fdependent issues\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Detects issue references**:\n   - Parse recent commit messages for patterns like \"Fixes #123\", \"Addresses #45\"\n   - Scan AIWG artifacts for issue mentions in metadata or references sections\n   - Check code comments for TODO(#123) or @issue #123 patterns\n\n2. **Classifies reference type**:\n   - **Completion**: `Fixes`, `Closes`, `Resolves` → Close issue\n   - **Progress**: `Implements`, `Addresses`, `Part of` → Add progress comment\n   - **Reference**: `Refs`, `See`, `Related to` → Add reference comment\n   - **Blocker**: `Blocks`, `Blocked by` → Add blocker notification\n\n3. **Gathers context**:\n   - Extract commit SHA, message, author, timestamp\n   - List changed files and line counts\n   - Find related artifacts and test files\n   - Check CI\u002FCD status if available\n\n4. **Generates appropriate comment**:\n   - Use `task-completed.md` template for closure\n   - Use `progress-update.md` template for progress\n   - Use `blocker-found.md` template for blockers\n   - Include commit details, file changes, and context\n\n5. **Updates issues via API**:\n   - Post comment to GitHub (using `gh` CLI) or Gitea (using MCP tools)\n   - Close issue if completion pattern detected\n   - Add appropriate labels (in-progress, blocked, completed)\n   - Update dependent\u002Fblocking issues\n\n6. **Reports results**:\n   - List issues detected and updated\n   - Show actions taken (commented, closed, labeled)\n   - Highlight any errors or skipped updates\n\n## Reference Detection Patterns\n\n### Commit Message Patterns\n\n| Pattern | Action | Example |\n|---------|--------|---------|\n| `Fixes #N` | Close issue | `git commit -m \"Fixes #17: Add auth\"` |\n| `Closes #N` | Close issue | `git commit -m \"Closes #17\"` |\n| `Resolves #N` | Close issue | `git commit -m \"Resolves #17\"` |\n| `Implements #N` | Progress update | `git commit -m \"Implements #17 partially\"` |\n| `Addresses #N` | Progress update | `git commit -m \"Addresses #17\"` |\n| `Part of #N` | Progress update | `git commit -m \"Part of #17\"` |\n| `Related to #N` | Reference comment | `git commit -m \"Related to #17\"` |\n| `Refs #N` | Reference comment | `git commit -m \"Refs #17\"` |\n| `See #N` | Reference comment | `git commit -m \"See #17\"` |\n| `Blocks #N` | Blocker notification | `git commit -m \"Blocks #17\"` |\n| `Blocked by #N` | Blocker notification | `git commit -m \"Blocked by #17\"` |\n\n**Multi-issue support**:\n```bash\ngit commit -m \"Fixes #17, Closes #18, Addresses #19\"\n```\nEach issue is processed separately.\n\n**Cross-repository**:\n```bash\ngit commit -m \"Fixes owner\u002Frepo#123\"\n```\nUpdates issue in the specified repository.\n\n### Artifact Reference Patterns\n\n**Metadata section**:\n```markdown\n## References\n\n- Primary issue: #17\n- Related: #18, #19\n- Blocks: #20\n```\n\n**Frontmatter**:\n```yaml\n---\nissue: 17\nrelated_issues: [18, 19]\nblocked_by: 16\n---\n```\n\n**Inline mentions**:\n```markdown\nThis feature addresses issue #17 by implementing automatic synchronization.\n```\n\n### Code Reference Patterns\n\n**TODO comments**:\n```typescript\n\u002F\u002F TODO(#17): Add retry logic\n\u002F\u002F FIXME(#17): Handle edge case\n```\n\n**Documentation comments**:\n```typescript\n\u002F**\n * @issue #17\n * @implements @.aiwg\u002Frequirements\u002FUC-017.md\n *\u002F\nexport class IssueSync {}\n```\n\n**Test descriptions**:\n```typescript\ndescribe('Issue #17: Auto-sync', () => {\n  it('should detect issue references', () => {});\n});\n```\n\n## Context Gathering\n\nFor each detected issue, collect:\n\n**Commit Information**:\n- SHA (short and full)\n- Message (full text)\n- Author name and email\n- Timestamp\n- Branch name\n- Parent commit(s)\n\n**Change Statistics**:\n- Files changed (count)\n- Lines added\n- Lines removed\n- Key files (categorize as code, test, docs, config)\n\n**Artifact Context**:\n- Path to artifact\n- Artifact type (requirements, architecture, test plan, etc.)\n- Section where issue is mentioned\n- Related artifacts\n\n**Build\u002FTest Context**:\n- CI\u002FCD pipeline status (if available)\n- Test results (passing\u002Ffailing)\n- Code coverage changes\n\n## Comment Generation\n\n### Completion Comment (Fixes\u002FCloses\u002FResolves)\n\n```markdown\n## Task Completed\n\n**Status**: Completed\n**Completed by**: {author_name}\n**Completion date**: {commit_timestamp}\n\n## Summary of Work\n\n{commit_message}\n\n## Changes Made\n\n### Files Modified\n{list_of_changed_files_with_categorization}\n\n**Code Changes**:\n- `{file_path}` (+{lines} -{lines})\n\n**Tests Added**:\n- `{test_file_path}` (+{lines} -{lines})\n\n**Documentation**:\n- `{doc_file_path}` (+{lines} -{lines})\n\n### Statistics\n- Total files changed: {count}\n- Lines added: {count}\n- Lines removed: {count}\n\n## Commit Details\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **Full SHA**: {full_sha}\n- **View**: {commit_url}\n\n## Verification\n\n- [x] Code committed and pushed\n- [ ] CI\u002FCD pipeline (check: {ci_url})\n- [ ] Code review (if required)\n- [ ] Ready for deployment\n\n## Related Items\n\n- Commit: {repo}@{sha}\n{if_applicable}\n- Related PR: #{pr_number}\n- Related issues: #{issue_numbers}\n- Artifacts: {artifact_paths}\n\n---\n\n*Automated completion notice from commit {short_sha}. Please review and verify.*\n```\n\n### Progress Comment (Implements\u002FAddresses\u002FPart of)\n\n```markdown\n## Progress Update\n\n**Status**: In Progress\n**Updated by**: {author_name}\n**Update date**: {commit_timestamp}\n**Progress**: {estimate}% complete\n\n## Work Completed\n\n{commit_message}\n\n### Changes in This Update\n\n**Files modified**: {count}\n{key_file_list}\n\n**Lines changed**: +{added} -{removed}\n\n### Commits in This Update\n- {short_sha}: {message}\n\n## Current Status\n\n{infer_from_commit_and_files}\n\n## Commit Reference\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **View**: {commit_url}\n\n---\n\n*Automated progress update from commit {short_sha}.*\n```\n\n### Blocker Comment (Blocks\u002FBlocked by)\n\n```markdown\n## Blocker Alert\n\n**Status**: Blocked\n**Reported by**: {author_name}\n**Reported date**: {commit_timestamp}\n**Severity**: {infer_from_context}\n\n## Blocker Description\n\n{commit_message}\n\n## Context\n\nRelated commit: {repo}@{short_sha}\n\n{additional_context_from_changed_files}\n\n## Impact\n\n{analyze_blocking_relationship}\n\n## Commit Reference\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **View**: {commit_url}\n\n---\n\n*Automated blocker notification from commit {short_sha}. Please address this blocking issue.*\n```\n\n## API Integration\n\n### GitHub (via `gh` CLI)\n\n```bash\n# Add comment\ngh issue comment {issue_number} --body \"{comment_body}\"\n\n# Close issue\ngh issue close {issue_number} --comment \"{completion_comment}\"\n\n# Add label\ngh issue edit {issue_number} --add-label \"completed\"\n```\n\n### Gitea (via MCP tools)\n\n```bash\n# Add comment\nmcp__gitea__create_issue_comment \\\n  --owner {owner} \\\n  --repo {repo} \\\n  --issue_number {number} \\\n  --body \"{comment_body}\"\n\n# Close issue\nmcp__gitea__edit_issue \\\n  --owner {owner} \\\n  --repo {repo} \\\n  --issue_number {number} \\\n  --state closed\n\n# Then add completion comment\n```\n\n### Repository Detection\n\n```bash\n# Check remotes to determine platform\ngit remote -v\n\n# If github.com → Use gh CLI\n# If git.integrolabs.net or other Gitea → Use MCP tools\n# Prefer origin remote if multiple remotes present\n```\n\n## Safety and Validation\n\n### Skip Updates If:\n\n- Issue number in URL: `https:\u002F\u002Fexample.com\u002Fissues\u002F123`\n- Issue number is version: `v1.2.3`\n- Commit message contains `[skip-issue-sync]`\n- Issue doesn't exist\n- Issue is already closed (for non-completion actions)\n- User lacks permission to update issue\n\n### Validate Before Close:\n\n- Issue exists and is currently open\n- User has permission to close\n- No other open blockers referenced\n- CI\u002FCD passing (if configured to check)\n\n### Error Handling:\n\n**Issue not found**:\n```\nWarning: Issue #123 not found. Skipping update.\n```\n\n**Permission denied**:\n```\nWarning: Cannot update issue #123 - insufficient permissions. Manual update required.\n```\n\n**API rate limit**:\n```\nWarning: API rate limit reached. Queuing updates for retry.\n```\n\n## Configuration\n\n### `.aiwg\u002Fconfig.yaml`\n\n```yaml\nissue_auto_sync:\n  enabled: true\n  platforms:\n    - github\n    - gitea\n\n  # When to run\n  triggers:\n    post_commit: true\n    artifact_update: true\n    manual: true\n\n  # Detection patterns\n  patterns:\n    close: [\"Fixes\", \"Closes\", \"Resolves\"]\n    progress: [\"Implements\", \"Addresses\", \"Part of\"]\n    reference: [\"Refs\", \"See\", \"Related to\"]\n    blocker: [\"Blocks\", \"Blocked by\"]\n\n  # Behavior\n  auto_close: true\n  auto_label: true\n  notify_dependencies: true\n\n  # Safety\n  skip_patterns:\n    - \"\\\\[skip-issue-sync\\\\]\"\n    - \"https?:\u002F\u002F.*\u002Fissues\u002F\\\\d+\"\n    - \"v\\\\d+\\\\.\\\\d+\\\\.\\\\d+\"\n\n  # Scanning\n  scan_commits: 1  # Number of commits to scan\n  scan_artifacts: true\n  scan_code_comments: false  # Disable for performance\n```\n\n### Git Hooks Integration\n\n**Post-commit hook** (`.git\u002Fhooks\u002Fpost-commit`):\n\n```bash\n#!\u002Fbin\u002Fbash\n# Auto-sync issues after commit\n\n# Check if skill is enabled\nif grep -q \"issue_auto_sync: enabled: true\" .aiwg\u002Fconfig.yaml 2>\u002Fdev\u002Fnull; then\n  # Run issue sync skill\n  aiwg skill run issue-auto-sync\nfi\n```\n\n**Pre-push hook** (bulk sync before push):\n\n```bash\n#!\u002Fbin\u002Fbash\n# Sync all commits in push\n\n# Get commits being pushed\ncommits=$(git log origin\u002Fmain..HEAD --pretty=format:\"%H\")\n\n# Run sync for each\nfor commit in $commits; do\n  aiwg issue-sync --commit $commit\ndone\n```\n\n## Usage Examples\n\n### After Commit\n\n```bash\n# Commit references issue\ngit commit -m \"Fixes #17: Add issue sync automation\"\ngit push\n\n# Skill automatically runs (if post-commit hook enabled)\n# Or manually trigger\naiwg skill run issue-auto-sync\n\nOutput:\n\"Issue Auto-Sync Complete\n\nCommits scanned: 1\nIssues detected: 1\n\nUpdated Issues:\n✅ #17 - Closed with completion comment\n   Commit: abc123\n   Action: Closed issue with task-completed template\n\nNo errors.\"\n```\n\n### Scan Recent Commits\n\n```bash\n# Scan last 5 commits\naiwg issue-sync --scan-recent 5\n\nOutput:\n\"Issue Auto-Sync Complete\n\nCommits scanned: 5\nIssues detected: 3\n\nUpdated Issues:\n✅ #17 - Closed\n✅ #18 - Progress update added\n✅ #19 - Reference comment added\n\nSkipped:\n⚠️  #20 - Already closed\n⚠️  #21 - Issue not found\"\n```\n\n### Artifact Update Trigger\n\n```markdown\nWhen .aiwg\u002Frequirements\u002FUC-017.md is updated with:\n\n## References\n- Primary issue: #17\n- Related: #18\n\nSkill detects reference and adds comment to #17:\n\"Referenced in artifact: .aiwg\u002Frequirements\u002FUC-017.md\nThis issue is now documented in requirements.\"\n```\n\n## Integration with Other Skills\n\n### Works With:\n\n- **traceability-check**: Links issues to requirements and code\n- **project-awareness**: Understands repository structure\n- **artifact-metadata**: Extracts issue references from AIWG artifacts\n\n### Triggers From:\n\n- **git-workflow**: After commit, push, merge\n- **artifact-orchestration**: After artifact creation\u002Fupdate\n- **sdlc-phase-transitions**: When moving between phases\n\n## Report Format\n\n```markdown\n## Issue Auto-Sync Report\n\n**Run time**: {timestamp}\n**Trigger**: {post-commit|manual|artifact-update}\n**Scope**: {commit_range_or_artifacts}\n\n### Summary\n\n- Commits scanned: {count}\n- Artifacts scanned: {count}\n- Issues detected: {count}\n- Issues updated: {count}\n- Errors: {count}\n\n### Actions Taken\n\n#### Closed Issues ({count})\n- #17 - \"Add issue sync automation\"\n  - Commit: abc123\n  - Comment: task-completed.md\n  - Label added: completed\n\n#### Progress Updates ({count})\n- #18 - \"Update documentation\"\n  - Commit: def456\n  - Comment: progress-update.md\n  - Label added: in-progress\n\n#### Reference Comments ({count})\n- #19 - \"Refactor API\"\n  - Commit: ghi789\n  - Comment: reference\n\n#### Blocker Notifications ({count})\n- #20 - \"Deploy pipeline\"\n  - Blocked by: #21\n  - Notified in commit jkl012\n\n### Skipped ({count})\n\n- #22 - Already closed\n- #23 - Issue not found\n- #24 - Permission denied\n\n### Errors ({count})\n\n{if_any}\n- API rate limit reached (queued for retry)\n- Connection timeout for issue #25\n\n### Next Actions\n\n{if_applicable}\n- Review closed issues: #{numbers}\n- Address permission issues: #{numbers}\n- Retry failed updates: #{numbers}\n```\n\n## Best Practices\n\n### Commit Message Conventions\n\n**Clear intent**:\n```bash\n✅ Good: \"Fixes #17: Add automatic issue synchronization\"\n❌ Bad: \"Fixed stuff\"\n```\n\n**Multiple issues**:\n```bash\n✅ Good: \"Fixes #17, Addresses #18, Related to #19\"\n❌ Bad: \"Fixes 17 18 19\" (ambiguous)\n```\n\n**Descriptive context**:\n```bash\n✅ Good: \"Implements #17: Add commit message parsing and API integration\"\n❌ Bad: \"Implements #17\" (no context)\n```\n\n### Artifact References\n\n**Explicit in metadata**:\n```markdown\n## References\n\n- Primary: #17 - Issue sync automation\n- Related: #18 - Documentation updates\n- Blocks: #20 - Until API integration complete\n```\n\n**Clear in descriptions**:\n```markdown\nThis feature implements issue #17 by adding automatic synchronization\nbetween git commits and issue trackers.\n```\n\n## Output Locations\n\n- Sync reports: `.aiwg\u002Freports\u002Fissue-sync-{timestamp}.md`\n- Error logs: `.aiwg\u002Flogs\u002Fissue-sync-errors.log`\n- Update history: `.aiwg\u002Flogs\u002Fissue-updates.json`\n\n## References\n\n- Commands: @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fissue-sync.md, @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fissue-close.md\n- Templates: @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002F\n- MCP tools: Gitea issue management\n","# issue-auto-sync\n\nAutomatically detect and update linked issues after commits or artifact changes.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"link commits to issues\" → commit-to-issue tracing\n- \"auto-close issues\" → issue auto-closure on commit\n\n## Purpose\n\nThis skill maintains issue tracker synchronization by:\n- Detecting issue references in commit messages\n- Scanning AIWG artifacts for issue mentions\n- Automatically updating issues with progress\n- Closing issues when work is completed\n- Notifying blocked\u002Fdependent issues\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Detects issue references**:\n   - Parse recent commit messages for patterns like \"Fixes #123\", \"Addresses #45\"\n   - Scan AIWG artifacts for issue mentions in metadata or references sections\n   - Check code comments for TODO(#123) or @issue #123 patterns\n\n2. **Classifies reference type**:\n   - **Completion**: `Fixes`, `Closes`, `Resolves` → Close issue\n   - **Progress**: `Implements`, `Addresses`, `Part of` → Add progress comment\n   - **Reference**: `Refs`, `See`, `Related to` → Add reference comment\n   - **Blocker**: `Blocks`, `Blocked by` → Add blocker notification\n\n3. **Gathers context**:\n   - Extract commit SHA, message, author, timestamp\n   - List changed files and line counts\n   - Find related artifacts and test files\n   - Check CI\u002FCD status if available\n\n4. **Generates appropriate comment**:\n   - Use `task-completed.md` template for closure\n   - Use `progress-update.md` template for progress\n   - Use `blocker-found.md` template for blockers\n   - Include commit details, file changes, and context\n\n5. **Updates issues via API**:\n   - Post comment to GitHub (using `gh` CLI) or Gitea (using MCP tools)\n   - Close issue if completion pattern detected\n   - Add appropriate labels (in-progress, blocked, completed)\n   - Update dependent\u002Fblocking issues\n\n6. **Reports results**:\n   - List issues detected and updated\n   - Show actions taken (commented, closed, labeled)\n   - Highlight any errors or skipped updates\n\n## Reference Detection Patterns\n\n### Commit Message Patterns\n\n| Pattern | Action | Example |\n|---------|--------|---------|\n| `Fixes #N` | Close issue | `git commit -m \"Fixes #17: Add auth\"` |\n| `Closes #N` | Close issue | `git commit -m \"Closes #17\"` |\n| `Resolves #N` | Close issue | `git commit -m \"Resolves #17\"` |\n| `Implements #N` | Progress update | `git commit -m \"Implements #17 partially\"` |\n| `Addresses #N` | Progress update | `git commit -m \"Addresses #17\"` |\n| `Part of #N` | Progress update | `git commit -m \"Part of #17\"` |\n| `Related to #N` | Reference comment | `git commit -m \"Related to #17\"` |\n| `Refs #N` | Reference comment | `git commit -m \"Refs #17\"` |\n| `See #N` | Reference comment | `git commit -m \"See #17\"` |\n| `Blocks #N` | Blocker notification | `git commit -m \"Blocks #17\"` |\n| `Blocked by #N` | Blocker notification | `git commit -m \"Blocked by #17\"` |\n\n**Multi-issue support**:\n```bash\ngit commit -m \"Fixes #17, Closes #18, Addresses #19\"\n```\nEach issue is processed separately.\n\n**Cross-repository**:\n```bash\ngit commit -m \"Fixes owner\u002Frepo#123\"\n```\nUpdates issue in the specified repository.\n\n### Artifact Reference Patterns\n\n**Metadata section**:\n```markdown\n## References\n\n- Primary issue: #17\n- Related: #18, #19\n- Blocks: #20\n```\n\n**Frontmatter**:\n```yaml\n---\nissue: 17\nrelated_issues: [18, 19]\nblocked_by: 16\n---\n```\n\n**Inline mentions**:\n```markdown\nThis feature addresses issue #17 by implementing automatic synchronization.\n```\n\n### Code Reference Patterns\n\n**TODO comments**:\n```typescript\n\u002F\u002F TODO(#17): Add retry logic\n\u002F\u002F FIXME(#17): Handle edge case\n```\n\n**Documentation comments**:\n```typescript\n\u002F**\n * @issue #17\n * @implements @.aiwg\u002Frequirements\u002FUC-017.md\n *\u002F\nexport class IssueSync {}\n```\n\n**Test descriptions**:\n```typescript\ndescribe('Issue #17: Auto-sync', () => {\n  it('should detect issue references', () => {});\n});\n```\n\n## Context Gathering\n\nFor each detected issue, collect:\n\n**Commit Information**:\n- SHA (short and full)\n- Message (full text)\n- Author name and email\n- Timestamp\n- Branch name\n- Parent commit(s)\n\n**Change Statistics**:\n- Files changed (count)\n- Lines added\n- Lines removed\n- Key files (categorize as code, test, docs, config)\n\n**Artifact Context**:\n- Path to artifact\n- Artifact type (requirements, architecture, test plan, etc.)\n- Section where issue is mentioned\n- Related artifacts\n\n**Build\u002FTest Context**:\n- CI\u002FCD pipeline status (if available)\n- Test results (passing\u002Ffailing)\n- Code coverage changes\n\n## Comment Generation\n\n### Completion Comment (Fixes\u002FCloses\u002FResolves)\n\n```markdown\n## Task Completed\n\n**Status**: Completed\n**Completed by**: {author_name}\n**Completion date**: {commit_timestamp}\n\n## Summary of Work\n\n{commit_message}\n\n## Changes Made\n\n### Files Modified\n{list_of_changed_files_with_categorization}\n\n**Code Changes**:\n- `{file_path}` (+{lines} -{lines})\n\n**Tests Added**:\n- `{test_file_path}` (+{lines} -{lines})\n\n**Documentation**:\n- `{doc_file_path}` (+{lines} -{lines})\n\n### Statistics\n- Total files changed: {count}\n- Lines added: {count}\n- Lines removed: {count}\n\n## Commit Details\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **Full SHA**: {full_sha}\n- **View**: {commit_url}\n\n## Verification\n\n- [x] Code committed and pushed\n- [ ] CI\u002FCD pipeline (check: {ci_url})\n- [ ] Code review (if required)\n- [ ] Ready for deployment\n\n## Related Items\n\n- Commit: {repo}@{sha}\n{if_applicable}\n- Related PR: #{pr_number}\n- Related issues: #{issue_numbers}\n- Artifacts: {artifact_paths}\n\n---\n\n*Automated completion notice from commit {short_sha}. Please review and verify.*\n```\n\n### Progress Comment (Implements\u002FAddresses\u002FPart of)\n\n```markdown\n## Progress Update\n\n**Status**: In Progress\n**Updated by**: {author_name}\n**Update date**: {commit_timestamp}\n**Progress**: {estimate}% complete\n\n## Work Completed\n\n{commit_message}\n\n### Changes in This Update\n\n**Files modified**: {count}\n{key_file_list}\n\n**Lines changed**: +{added} -{removed}\n\n### Commits in This Update\n- {short_sha}: {message}\n\n## Current Status\n\n{infer_from_commit_and_files}\n\n## Commit Reference\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **View**: {commit_url}\n\n---\n\n*Automated progress update from commit {short_sha}.*\n```\n\n### Blocker Comment (Blocks\u002FBlocked by)\n\n```markdown\n## Blocker Alert\n\n**Status**: Blocked\n**Reported by**: {author_name}\n**Reported date**: {commit_timestamp}\n**Severity**: {infer_from_context}\n\n## Blocker Description\n\n{commit_message}\n\n## Context\n\nRelated commit: {repo}@{short_sha}\n\n{additional_context_from_changed_files}\n\n## Impact\n\n{analyze_blocking_relationship}\n\n## Commit Reference\n\n- **Commit**: {repo}@{short_sha}\n- **Branch**: {branch_name}\n- **View**: {commit_url}\n\n---\n\n*Automated blocker notification from commit {short_sha}. Please address this blocking issue.*\n```\n\n## API Integration\n\n### GitHub (via `gh` CLI)\n\n```bash\n# Add comment\ngh issue comment {issue_number} --body \"{comment_body}\"\n\n# Close issue\ngh issue close {issue_number} --comment \"{completion_comment}\"\n\n# Add label\ngh issue edit {issue_number} --add-label \"completed\"\n```\n\n### Gitea (via MCP tools)\n\n```bash\n# Add comment\nmcp__gitea__create_issue_comment \\\n  --owner {owner} \\\n  --repo {repo} \\\n  --issue_number {number} \\\n  --body \"{comment_body}\"\n\n# Close issue\nmcp__gitea__edit_issue \\\n  --owner {owner} \\\n  --repo {repo} \\\n  --issue_number {number} \\\n  --state closed\n\n# Then add completion comment\n```\n\n### Repository Detection\n\n```bash\n# Check remotes to determine platform\ngit remote -v\n\n# If github.com → Use gh CLI\n# If git.integrolabs.net or other Gitea → Use MCP tools\n# Prefer origin remote if multiple remotes present\n```\n\n## Safety and Validation\n\n### Skip Updates If:\n\n- Issue number in URL: `https:\u002F\u002Fexample.com\u002Fissues\u002F123`\n- Issue number is version: `v1.2.3`\n- Commit message contains `[skip-issue-sync]`\n- Issue doesn't exist\n- Issue is already closed (for non-completion actions)\n- User lacks permission to update issue\n\n### Validate Before Close:\n\n- Issue exists and is currently open\n- User has permission to close\n- No other open blockers referenced\n- CI\u002FCD passing (if configured to check)\n\n### Error Handling:\n\n**Issue not found**:\n```\nWarning: Issue #123 not found. Skipping update.\n```\n\n**Permission denied**:\n```\nWarning: Cannot update issue #123 - insufficient permissions. Manual update required.\n```\n\n**API rate limit**:\n```\nWarning: API rate limit reached. Queuing updates for retry.\n```\n\n## Configuration\n\n### `.aiwg\u002Fconfig.yaml`\n\n```yaml\nissue_auto_sync:\n  enabled: true\n  platforms:\n    - github\n    - gitea\n\n  # When to run\n  triggers:\n    post_commit: true\n    artifact_update: true\n    manual: true\n\n  # Detection patterns\n  patterns:\n    close: [\"Fixes\", \"Closes\", \"Resolves\"]\n    progress: [\"Implements\", \"Addresses\", \"Part of\"]\n    reference: [\"Refs\", \"See\", \"Related to\"]\n    blocker: [\"Blocks\", \"Blocked by\"]\n\n  # Behavior\n  auto_close: true\n  auto_label: true\n  notify_dependencies: true\n\n  # Safety\n  skip_patterns:\n    - \"\\\\[skip-issue-sync\\\\]\"\n    - \"https?:\u002F\u002F.*\u002Fissues\u002F\\\\d+\"\n    - \"v\\\\d+\\\\.\\\\d+\\\\.\\\\d+\"\n\n  # Scanning\n  scan_commits: 1  # Number of commits to scan\n  scan_artifacts: true\n  scan_code_comments: false  # Disable for performance\n```\n\n### Git Hooks Integration\n\n**Post-commit hook** (`.git\u002Fhooks\u002Fpost-commit`):\n\n```bash\n#!\u002Fbin\u002Fbash\n# Auto-sync issues after commit\n\n# Check if skill is enabled\nif grep -q \"issue_auto_sync: enabled: true\" .aiwg\u002Fconfig.yaml 2>\u002Fdev\u002Fnull; then\n  # Run issue sync skill\n  aiwg skill run issue-auto-sync\nfi\n```\n\n**Pre-push hook** (bulk sync before push):\n\n```bash\n#!\u002Fbin\u002Fbash\n# Sync all commits in push\n\n# Get commits being pushed\ncommits=$(git log origin\u002Fmain..HEAD --pretty=format:\"%H\")\n\n# Run sync for each\nfor commit in $commits; do\n  aiwg issue-sync --commit $commit\ndone\n```\n\n## Usage Examples\n\n### After Commit\n\n```bash\n# Commit references issue\ngit commit -m \"Fixes #17: Add issue sync automation\"\ngit push\n\n# Skill automatically runs (if post-commit hook enabled)\n# Or manually trigger\naiwg skill run issue-auto-sync\n\nOutput:\n\"Issue Auto-Sync Complete\n\nCommits scanned: 1\nIssues detected: 1\n\nUpdated Issues:\n✅ #17 - Closed with completion comment\n   Commit: abc123\n   Action: Closed issue with task-completed template\n\nNo errors.\"\n```\n\n### Scan Recent Commits\n\n```bash\n# Scan last 5 commits\naiwg issue-sync --scan-recent 5\n\nOutput:\n\"Issue Auto-Sync Complete\n\nCommits scanned: 5\nIssues detected: 3\n\nUpdated Issues:\n✅ #17 - Closed\n✅ #18 - Progress update added\n✅ #19 - Reference comment added\n\nSkipped:\n⚠️  #20 - Already closed\n⚠️  #21 - Issue not found\"\n```\n\n### Artifact Update Trigger\n\n```markdown\nWhen .aiwg\u002Frequirements\u002FUC-017.md is updated with:\n\n## References\n- Primary issue: #17\n- Related: #18\n\nSkill detects reference and adds comment to #17:\n\"Referenced in artifact: .aiwg\u002Frequirements\u002FUC-017.md\nThis issue is now documented in requirements.\"\n```\n\n## Integration with Other Skills\n\n### Works With:\n\n- **traceability-check**: Links issues to requirements and code\n- **project-awareness**: Understands repository structure\n- **artifact-metadata**: Extracts issue references from AIWG artifacts\n\n### Triggers From:\n\n- **git-workflow**: After commit, push, merge\n- **artifact-orchestration**: After artifact creation\u002Fupdate\n- **sdlc-phase-transitions**: When moving between phases\n\n## Report Format\n\n```markdown\n## Issue Auto-Sync Report\n\n**Run time**: {timestamp}\n**Trigger**: {post-commit|manual|artifact-update}\n**Scope**: {commit_range_or_artifacts}\n\n### Summary\n\n- Commits scanned: {count}\n- Artifacts scanned: {count}\n- Issues detected: {count}\n- Issues updated: {count}\n- Errors: {count}\n\n### Actions Taken\n\n#### Closed Issues ({count})\n- #17 - \"Add issue sync automation\"\n  - Commit: abc123\n  - Comment: task-completed.md\n  - Label added: completed\n\n#### Progress Updates ({count})\n- #18 - \"Update documentation\"\n  - Commit: def456\n  - Comment: progress-update.md\n  - Label added: in-progress\n\n#### Reference Comments ({count})\n- #19 - \"Refactor API\"\n  - Commit: ghi789\n  - Comment: reference\n\n#### Blocker Notifications ({count})\n- #20 - \"Deploy pipeline\"\n  - Blocked by: #21\n  - Notified in commit jkl012\n\n### Skipped ({count})\n\n- #22 - Already closed\n- #23 - Issue not found\n- #24 - Permission denied\n\n### Errors ({count})\n\n{if_any}\n- API rate limit reached (queued for retry)\n- Connection timeout for issue #25\n\n### Next Actions\n\n{if_applicable}\n- Review closed issues: #{numbers}\n- Address permission issues: #{numbers}\n- Retry failed updates: #{numbers}\n```\n\n## Best Practices\n\n### Commit Message Conventions\n\n**Clear intent**:\n```bash\n✅ Good: \"Fixes #17: Add automatic issue synchronization\"\n❌ Bad: \"Fixed stuff\"\n```\n\n**Multiple issues**:\n```bash\n✅ Good: \"Fixes #17, Addresses #18, Related to #19\"\n❌ Bad: \"Fixes 17 18 19\" (ambiguous)\n```\n\n**Descriptive context**:\n```bash\n✅ Good: \"Implements #17: Add commit message parsing and API integration\"\n❌ Bad: \"Implements #17\" (no context)\n```\n\n### Artifact References\n\n**Explicit in metadata**:\n```markdown\n## References\n\n- Primary: #17 - Issue sync automation\n- Related: #18 - Documentation updates\n- Blocks: #20 - Until API integration complete\n```\n\n**Clear in descriptions**:\n```markdown\nThis feature implements issue #17 by adding automatic synchronization\nbetween git commits and issue trackers.\n```\n\n## Output Locations\n\n- Sync reports: `.aiwg\u002Freports\u002Fissue-sync-{timestamp}.md`\n- Error logs: `.aiwg\u002Flogs\u002Fissue-sync-errors.log`\n- Update history: `.aiwg\u002Flogs\u002Fissue-updates.json`\n\n## References\n\n- Commands: @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fissue-sync.md, @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fissue-close.md\n- Templates: @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002F\n- MCP tools: Gitea issue management\n",{"name":5,"namespace":49,"platforms":50,"description":7},"aiwg",[51],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-auto-sync",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add jmagly\u002Faiwg --skill issue-auto-sync",{"tool":68,"command":69},"bunx","bunx skills add jmagly\u002Faiwg --skill issue-auto-sync",{"tool":71,"command":72},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill issue-auto-sync","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-auto-sync\u002FSKILL.md",true,[76],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"agents\u002Fopenai.yaml","REFERENCE","参考文档",43,"https:\u002F\u002Fgithub.com\u002Foscarrenalias\u002Ftakt\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Ftask\u002Frefactor-safe\u002Fagents\u002Fopenai.yaml",[83,91,96,123,143,148],{"skillNo":84,"name":85,"nameZh":17,"description":86,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":92,"name":85,"nameZh":17,"description":86,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":90},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":44},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":124,"name":125,"nameZh":17,"description":126,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":44},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[130,131,132,133,134,135,108,136,114,121,116,137,104,138,118,139,140,122,141,142],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":144,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":44},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[103,104,105,120,121,122,115,119,111,107,108,109,110,112,113,114,106,116,117,118],{"skillNo":149,"name":125,"nameZh":17,"description":126,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":44},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[130,131,142,141,134,140,139,118,133,135,108,136,114,132,116,137,104,122,121,138]]