// GitHub issue and PR image/asset analysis for implementation planning. Analyzes visual requirements from mockups, diagrams, and screenshots. Activated when working with GitHub issues/PRs.
| name | github-assets |
| description | GitHub issue and PR image/asset analysis for implementation planning. Analyzes visual requirements from mockups, diagrams, and screenshots. Activated when working with GitHub issues/PRs. |
| allowed-tools | ["Bash","Read"] |
This skill provides guidance on downloading and analyzing GitHub assets (images, mockups, diagrams) to inform technical decisions and implementation planning.
When GitHub issues, PRs, or project READMEs contain image links (mockups, diagrams, screenshots), analyzing these visual elements ensures:
Always download and analyze images before creating implementation plans when:
Use gh-asset CLI to download GitHub assets:
# Install gh-asset
# See: https://github.com/YuitoSato/gh-asset
# Download specific asset
gh-asset download <asset_id> .claude/local/assets
# Download all assets from issue
gh-asset download-issue <issue_number> .claude/local/assets
# Download all assets from PR
gh-asset download-pr <pr_number> .claude/local/assets
When reviewing GitHub issues/PRs, check for:
# Create assets directory
mkdir -p .claude/local/assets
# Download from issue
gh-asset download-issue 123 .claude/local/assets
# Or download specific asset URL
gh-asset download https://user-images.githubusercontent.com/.../image.png .claude/local/assets
For each asset, identify:
UI Mockups:
Architecture Diagrams:
Flowcharts:
Screenshots:
Create structured notes from visual analysis:
## Visual Requirements from Issue #123
### Mockup Analysis (image-1.png)
**Layout**:
- 3-column grid layout
- Left sidebar: 280px fixed width
- Main content: Flexible
- Right sidebar: 320px fixed width
**Components Required**:
- Navigation bar with search
- User profile dropdown
- Notification bell icon
- Card components with shadow
**Interactions**:
- Hover states on cards
- Dropdown menu on profile click
- Search with autocomplete
**Responsive**:
- Mobile: Stack to single column
- Tablet: 2-column layout
- Desktop: 3-column layout
### Architecture Diagram (architecture.png)
**Services**:
- Frontend: React + TypeScript
- API Gateway: Express
- Database: PostgreSQL
- Cache: Redis
- Queue: RabbitMQ
**Data Flow**:
1. User request â API Gateway
2. Gateway â Auth Service
3. Auth Service â Database
4. Response caching in Redis
When implementing, reference specific visual elements:
// Implementation based on mockup (image-1.png)
// Left sidebar: 280px as specified in design
const SIDEBAR_WIDTH = 280;
// Card shadow matches mockup specifications
const cardStyles = {
boxShadow: '0 2px 4px rgba(0,0,0,0.1)', // From mockup
borderRadius: '8px', // From mockup
padding: '16px', // From mockup
};
Extract:
Tools to help:
Extract:
Extract:
Extract:
.claude/local/assets/
âââ issues/
â âââ issue-123/
â â âââ mockup-login.png
â â âââ mockup-dashboard.png
â â âââ analysis.md
â âââ issue-456/
â âââ error-screenshot.png
âââ prs/
â âââ pr-789/
â â âââ before.png
â â âââ after.png
â âââ pr-101/
â âââ architecture.png
âââ designs/
âââ figma-exports/
âââ wireframes/
<type>-<description>-<version>.<ext>
Examples:
- mockup-login-page-v1.png
- diagram-system-architecture-v2.svg
- screenshot-error-state.png
- wireframe-checkout-flow.pdf
Before starting implementation:
## Implementation Plan
Based on mockup analysis (see .claude/local/assets/issues/issue-123/mockup.png):
1. Create 3-column grid layout
2. Implement sidebar navigation (280px width)
3. Add card components with specified shadow
4. Implement responsive breakpoints
## Visual Changes
### Before

### After

### Changes Made
- Updated button colors to match brand guidelines
- Increased spacing between cards (16px â 24px)
- Added hover states as specified in mockup