Web

From ai-shifu/ai-shifu · View interactive version

Web is an AI agent skill from the GitHub repository ai-shifu/ai-shifu. Read the nearest `AGENTS.md` for project rules. This entry point routes tasks

How to use this skill

Skill file

Frontend workflow navigation

Read the nearest AGENTS.md for project rules. This entry point routes tasks

by scenario; detailed procedures belong in focused skills. The complete

skill catalog is derived from each skill's metadata.

| Scenario | Start here |

| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| Chat streaming, typewriter or timeout | Element streaming |

| Editor Debug typewriter or speaker helpers | Debug gate |

| Learner preview header, banner or content offsets | Preview header layout |

| Learner initialization or authentication troubleshooting | Debug console workflow |

| Follow-up entry, messages or mode-dependent visibility | Ask placement and shared state |

| Learning-mode initialization, URL overrides or restored preferences | Initialization and storage |

| Narration, buffering or audio backfill | Listen-mode audio |

| Mobile slide layout or fullscreen overlays | Mobile integration, fullscreen portals |

| Admin filters, tables or pagination | Filter layout, table system |

| Interaction defaults or repeatable system actions | Input defaults, system buttons |

| Lesson deep links or responsive mode | Lesson routing, width detection |

| Shared hooks, library types or controlled values | Hook contracts, module augmentation, controlled sync |

| Error boundaries, build runtime or loading feedback | Error fallback, Node runtime, loading dots, async confirmation |

For billing terminology and display rules, use the owning

billing design and shared components.

For an editor Debug business failure before the first content element, use the

existing useDebugSession error path to replace the loading placeholder with the

backend message. Preserve the structured business code on the rendered error

item and let DebugPanel choose a directed action; do not branch on message

text. src/components/lesson-debug/use-debug-session.test.ts covers the loading

replacement and retained business code.

src/components/lesson-debug/ owns the lesson editor's Debug panel and transient

Debug conversation. Full-course classroom preview uses the learner chat flow.

Existing preview API paths, SSE event names, analytics event names, storage keys

and translation namespaces retain their compatibility contracts.

Name editor Debug code by responsibility: DebugPanel composes the UI,

useDebugSession owns the transient session, and startRun / stopRun

operate on one stream while resetSession replaces the session. UI callbacks

name their action (onSubmitInteraction, onRequestElementAudio). Editor Debug

does not expose content regeneration or its Retry action. Earlier answer edits

retain the exact interaction anchor and preceding teaching; retryAnswerEdit

retries only a failed answer edit. Use elementBid for

rendered elements and generatedBlockBid for engine turns. Internal run

parameters use camelCase; the request boundary maps them to the existing wire

fields. Shared variable

and preparation types live in src/types/debug-session.d.ts, storage in

debug-variable-storage.ts, and request preparation in debug-request-params.ts.

For file casing, follow the engineering naming rules.

File names and code identifiers have separate conventions.

Add a focused skill only for a recurring workflow. Its SKILL.md must declare

name and a concrete trigger in description; keep reference details there,

then regenerate the catalog instead of adding another hand-maintained list.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.