All skills
simota avatar

/forge

@e307415
by shingo imotasimota/agent-skills85 stars
15

Building rapid prototypes for frontend (UI components/pages) and backend (API mocks, simple servers). Use to validate new features or turn ideas into working demos. Working software over perfection.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/forge

This session only. Nothing lands on disk.

referencestory-scaffolding.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Story Scaffolding Reference

Purpose: define when Forge should generate preview stories and how to hand them off to Vitrine or Artisan.

Contents

  • Generation rules
  • Storybook preview template
  • React Cosmos fixture template
  • Output structure
  • FORGE_TO_SHOWCASE
  • ARTISAN_HANDOFF
  • Story trigger

When to Generate Stories

Scenario Generate preview stories?
UI component prototype Yes, recommended
Backend PoC No
Complex multi-component page Only for the main component
API mock demonstration only No

Forge generates a minimal preview story only. Full coverage belongs to Vitrine.

Storybook Preview Template

import type { Meta, StoryObj } from '@storybook/react';
import { ComponentName } from './ComponentName';

const meta = {
  component: ComponentName,
  title: 'Prototypes/ComponentName',
  tags: ['prototype'],
  parameters: {
    docs: {
      description: {
        component: 'Prototype preview. Full stories are pending from Vitrine.',
      },
    },
  },
} satisfies Meta<typeof ComponentName>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Preview: Story = {
  args: {},
};

// TODO(showcase): Add variants, interaction tests, and a11y configuration

React Cosmos Fixture Template

import { ComponentName } from './ComponentName';

export default {
  default: <ComponentName />,
  withProps: <ComponentName variant="primary" />,
};

// TODO(showcase): Add broader fixtures and decorators

Story Output Structure

feature/
├── ComponentName.tsx           # required
├── ComponentName.stories.tsx   # optional preview story
├── ComponentName.fixture.tsx   # optional Cosmos fixture
├── types.ts                    # required
├── handlers.ts                 # required
├── errors.ts                   # required
└── forge-insights.md           # required

FORGE_TO_SHOWCASE

## FORGE_TO_SHOWCASE: Story Enhancement Request

### Prototype Info
- Component: `[path/to/ComponentName.tsx]`
- Preview Story: `[path/to/ComponentName.stories.tsx]`
- Fixture: `[path/to/ComponentName.fixture.tsx]` (if present)

### Current Coverage
- ✅ Default state preview
- ❌ Variants
- ❌ State coverage
- ❌ Interaction tests
- ❌ Accessibility configuration
- ❌ MDX documentation

### Props to Cover
| Prop | Type | Values to test |
|---|---|---|
| variant | string | primary, secondary, outline |
| size | string | sm, md, lg |
| disabled | boolean | true, false |

### Requested Enhancements
1. Move from `Prototypes/` into the final story hierarchy
2. Add variant stories
3. Add interaction tests
4. Add accessibility configuration
5. Add documentation

### Notes
- [Anything learned during prototyping]

ARTISAN_HANDOFF

## ARTISAN_HANDOFF (from Forge)

### Prototype Summary
- Components: [List of prototyped components]
- Tech stack: [React/Vue + styling approach]
- Demo URL: [Local dev URL if running]

### Production Requirements
- [ ] Replace mock data with real API calls
- [ ] Add proper error handling
- [ ] Handle responsive edge cases
- [ ] Add loading and error states
- [ ] Add component tests

Suggested command: `/Artisan productionize [component]`

Shared Tags Convention

Tag Meaning Owner
prototype Forge-generated and not production-ready Forge
autodocs Auto-generated documentation Vitrine
visual-test Include in visual regression Vitrine
component Production component story Vitrine

ON_STORY_GENERATION Trigger

questions:
  - question: "Should Forge generate preview stories with this prototype?"
    header: "Stories"
    options:
      - label: "Yes - Storybook (Recommended)"
        description: "Generate a minimal Storybook preview story"
      - label: "Yes - React Cosmos"
        description: "Generate a React Cosmos fixture"
      - label: "Yes - Both"
        description: "Generate both Storybook and React Cosmos"
      - label: "No - Skip"
        description: "Vitrine will create stories from scratch"
    multiSelect: false

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The Forge skill is a robust prototyping utility that provides templates and workflows for UI, API, and backend proofs-of-concept while mandating strict security reviews and dependency verification, particularly for AI-generated code.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    12 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/forge