一键导入
parse-ai-analysis
Parse GitHub AI analysis comment sections for architectural alignment, technical feasibility, implementation suggestions, and testing strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Parse GitHub AI analysis comment sections for architectural alignment, technical feasibility, implementation suggestions, and testing strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.
Generates structured Handoff Pack prompts for delegating work to Gemini with clear scope, acceptance criteria, and output format requirements.
Incrementally improve type safety by replacing string literals with enums, narrowing `any` types, and using shared types. Works in small verified batches. Preserves functionality while improving code quality.
Cloudflare DNS and infrastructure management. Manage DNS records, tunnels, Access policies, SSL certificates, and CDN caching.
Deploy projects to staging or production environments. Repo-agnostic deployment orchestration using SSH MCP for VPS operations and Cloudflare for DNS/SSL. Reads project configuration from deployments.registry.json.
Direct VPS operations via SSH MCP. Manage Docker containers, check logs, run commands, and troubleshoot services on registered VPS servers.
| name | parse-ai-analysis |
| description | Parse GitHub AI analysis comment sections for architectural alignment, technical feasibility, implementation suggestions, and testing strategy |
Extract structured data from GitHub AI issue analysis comments generated by github-actions bot for use in architecture planning and implementation.
fetch-github-issue-analysis skillThe AI analysis comment contains these sections:
# AI Issue Analysis
## Architectural Alignment
[How this issue aligns with current architecture]
## Technical Feasibility
[Assessment of implementation difficulty and approach]
## Implementation Suggestions
[Specific implementation recommendations]
## Files/Components Affected
[List of files that will need changes]
## Testing Strategy
[Recommended testing approach]
## Dependencies
[Related issues or features]
## Estimated Complexity
[Simple/Medium/Complex assessment]
AI_ANALYSIS=$1 # Full AI analysis comment text
if [ -z "$AI_ANALYSIS" ]; then
echo "❌ Error: No AI analysis provided"
exit 1
fi
# Check if contains expected heading
if ! echo "$AI_ANALYSIS" | grep -q "AI Issue Analysis"; then
echo "⚠️ Warning: Unexpected format - may not be AI analysis"
fi
# Extract section between "## Architectural Alignment" and next "##"
ARCH_ALIGNMENT=$(echo "$AI_ANALYSIS" | \
sed -n '/## Architectural Alignment/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
if [ -n "$ARCH_ALIGNMENT" ]; then
echo "✅ Architectural Alignment: $(echo "$ARCH_ALIGNMENT" | wc -l) lines"
else
echo "⚠️ Architectural Alignment section not found"
ARCH_ALIGNMENT="Not provided"
fi
TECH_FEASIBILITY=$(echo "$AI_ANALYSIS" | \
sed -n '/## Technical Feasibility/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
if [ -n "$TECH_FEASIBILITY" ]; then
echo "✅ Technical Feasibility: $(echo "$TECH_FEASIBILITY" | wc -l) lines"
else
TECH_FEASIBILITY="Not provided"
fi
IMPL_SUGGESTIONS=$(echo "$AI_ANALYSIS" | \
sed -n '/## Implementation Suggestions/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
if [ -n "$IMPL_SUGGESTIONS" ]; then
echo "✅ Implementation Suggestions: $(echo "$IMPL_SUGGESTIONS" | wc -l) lines"
else
IMPL_SUGGESTIONS="Not provided"
fi
FILES_AFFECTED=$(echo "$AI_ANALYSIS" | \
sed -n '/## Files\/Components/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
# Convert to array
if [ -n "$FILES_AFFECTED" ]; then
FILES_ARRAY=$(echo "$FILES_AFFECTED" | \
grep -oP '`[^`]+`' | \
sed 's/`//g' | \
jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "✅ Files Affected: $(echo "$FILES_ARRAY" | jq '. | length') files"
else
FILES_ARRAY="[]"
fi
TESTING_STRATEGY=$(echo "$AI_ANALYSIS" | \
sed -n '/## Testing Strategy/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
if [ -n "$TESTING_STRATEGY" ]; then
echo "✅ Testing Strategy: $(echo "$TESTING_STRATEGY" | wc -l) lines"
else
TESTING_STRATEGY="Not provided"
fi
DEPENDENCIES=$(echo "$AI_ANALYSIS" | \
sed -n '/## Dependencies/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d')
# Extract issue numbers
if [ -n "$DEPENDENCIES" ]; then
DEPS_ARRAY=$(echo "$DEPENDENCIES" | \
grep -oP '#\d+' | \
sed 's/#//' | \
jq -R -s -c 'split("\n") | map(select(length > 0) | tonumber)')
else
DEPS_ARRAY="[]"
fi
COMPLEXITY=$(echo "$AI_ANALYSIS" | \
sed -n '/## Estimated Complexity/,/^## /p' | \
sed '$d' | \
sed '1d' | \
sed '/^$/d' | \
grep -oP '(Simple|Medium|Complex)' | \
head -1)
if [ -z "$COMPLEXITY" ]; then
COMPLEXITY="Unknown"
fi
echo "✅ Complexity: $COMPLEXITY"
{
"status": "success",
"sections": {
"architecturalAlignment": "$ARCH_ALIGNMENT",
"technicalFeasibility": "$TECH_FEASIBILITY",
"implementationSuggestions": "$IMPL_SUGGESTIONS",
"filesAffected": $FILES_ARRAY,
"testingStrategy": "$TESTING_STRATEGY",
"dependencies": $DEPS_ARRAY,
"complexity": "$COMPLEXITY"
},
"raw": "$AI_ANALYSIS"
}
{
"status": "success",
"sections": {
"architecturalAlignment": "Aligns with component-based architecture. Requires state management updates.",
"technicalFeasibility": "High - uses existing React patterns. No new dependencies required.",
"implementationSuggestions": "1. Add darkMode to WorldContext\n2. Create DarkModeToggle component\n3. Persist to localStorage",
"filesAffected": [
"src/context/WorldContext.tsx",
"src/components/Settings/DarkModeToggle.tsx",
"src/styles/theme.ts"
],
"testingStrategy": "Unit tests for toggle component, integration tests for persistence, visual regression tests",
"dependencies": [135, 140],
"complexity": "Medium"
}
}
{
"status": "partial",
"sections": {
"architecturalAlignment": "Provided",
"technicalFeasibility": "Not provided",
"implementationSuggestions": "Provided",
"filesAffected": [],
"testingStrategy": "Not provided",
"dependencies": [],
"complexity": "Unknown"
},
"warnings": ["Technical Feasibility section missing", "No files specified"]
}
Used in conductor Phase 1 after fetching issue:
### Phase 1: Issue Discovery and Planning
**Step 1: Issue Selection**
Use `fetch-github-issue-analysis` to get issue + AI analysis
If AI analysis found:
Use `parse-ai-analysis` skill to extract structured sections:
- Input: AI analysis comment text
- Output: Structured sections
**Provide to architect agent**:
- Architectural alignment insights
- Technical feasibility assessment
- Suggested implementation approach
**Provide to implementation agent**:
- Implementation suggestions
- Files that need changes
**Provide to test planning**:
- Testing strategy recommendations
fetch-github-issue-analysis - Get AI analysis from GitHub{
"status": "warning",
"message": "Some sections missing",
"missingSections": ["Technical Feasibility", "Testing Strategy"]
}
{
"status": "error",
"error": "AI analysis format unrecognized",
"suggestion": "Manually review comment"
}