Skip to content
idea-machina logo

IdeaMachina Development Guide

idea-machina

Expert assistant for developing the IdeaMachina app - an ideas management system with CRUD, tagging, ratings, and "Continue to..." actions that convert ideas into projects, goals, workflows, or prompts. Use when: (1) Adding features to the idea-machina app (2) Creating new pages or components in...

SKILL.md

Full skill instructions

IdeaMachina Development Guide

Expert guidance for extending the IdeaMachina app in the Raamattu Nyt monorepo.

App Location

apps/​idea-machina/
├── src/
│   ├── pages/
│   │   ├── Index.tsx           # Prompts management (original)
│   │   ├── IdeasPage.tsx       # Ideas list with filters
│   │   └── IdeaDetailPage.tsx  # Idea detail/​edit view
│   ├── components/
│   │   ├── IdeaCard.tsx        # Card for list view
│   │   ├── IdeaForm.tsx        # Create/​edit form
│   │   ├── IdeaFilters.tsx     # Status/​tag/​AI filters
│   │   ├── TagSelector.tsx     # Multi-select tags
│   │   ├── RatingStars.tsx     # 1-5 star input
│   │   ├── ContinueDialog.tsx  # "Continue to..." actions
│   │   └── AIPickupToggle.tsx  # AI pickup toggle + priority
│   ├── lib/
│   │   └── ideas.ts            # Data layer (CRUD, tags, ratings)
│   ├── types/
│   │   └── ideas.ts            # TypeScript interfaces
│   └── App.tsx                 # Routes
└── package.json

Architecture Principles

  1. Monorepo patterns: Shared UI from packages/​ui, shared logic to packages/​*
  2. DB schema: All tables in ai_prompt schema
  3. Data layer: Supabase client in lib/​ideas.ts, React Query for state
  4. Soft delete: Use deleted_at column, never hard delete
  5. RLS policies: Owner can CRUD, authenticated can read

Key Patterns

Data Fetching (React Query)

const { data: ideas } = useQuery({
  queryKey: ["ideas", filters],
  queryFn: () => listIdeas(filters),
});

const mutation = useMutation({
  mutationFn: createIdea,
  onSuccess: () => queryClient.invalidateQueries({ queryKey: ["ideas"] }),
});

Type Transformations

DB uses label, UI uses name for tags:

function transformTag(dbTag: PmIdeaTag): IdeaTag {
  return { ...dbTag, name: dbTag.label };
}

"Continue to..." Actions

Ideas can convert to:

  • Project → pm_projects (sets idea status to 'converted')
  • Goal → pm_goals (links to existing project)
  • Workflow → workflows (optional project link)
  • Prompt → prompts + prompt_versions

References

  • Architecture Details - Full component hierarchy and data flow
  • DB Schema - Table structures and RLS policies
  • PRD location: /​Docs/​idea-machina/​PRD.md (when created)

Development Workflow

  1. New feature: Plan with brainstorming skill first
  2. DB changes: Create migration in supabase/​migrations/
  3. Types: Update src/​types/​ideas.ts
  4. Data layer: Add functions to src/​lib/​ideas.ts
  5. Components: Build in src/​components/
  6. Pages: Add routes in src/​App.tsx
  7. Tests: Use test-writer skill
  8. Docs: Update /​Docs/​idea-machina/

Common Tasks

Add New Field to Ideas

  1. Migration: ALTER TABLE ai_prompt.pm_ideas ADD COLUMN ...
  2. Types: Update PmIdea and IdeaWithDetails
  3. Form: Add field to IdeaForm.tsx
  4. Card: Display in IdeaCard.tsx if needed

Add New "Continue to..." Action

  1. Types: Add payload interface in types/​ideas.ts
  2. Data: Add function in lib/​ideas.ts
  3. Dialog: Add option and form in ContinueDialog.tsx
  4. Handlers: Wire up in pages

Add New Filter

  1. State: Add filter state in IdeasPage.tsx
  2. UI: Add control in IdeaFilters.tsx
  3. Query: Pass to listIdeas() in query key
  4. Data: Handle in listIdeas() function

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View