inkos
Local AI fiction creation system with Studio Chat, CLI, and TUI - use for long-form novel writing, standalone short-fiction packages, cover generation, open-world / branching interactive fiction, fan fiction, spinoffs, style imitation, chapter continuation/import, EPUB export, AIGC detection, and project analytics. Native English support with 10 built-in English genre profiles (LitRPG, Progression Fantasy, Isekai, Cultivation, System Apocalypse, Dungeon Core, Romantasy, Sci-Fi, Tower Climber, Cozy Fantasy). Also supports Chinese web novel genres (xuanhuan, xianxia, urban, horror, other). Includes governed context assembly, protected/compressible context budgeting, chapter planning, writing, audit/revision, persistent world/truth state, multi-model routing, cover/image services, custom OpenAI-compatible providers, and InkOS Studio web UI for visual book management, Short runs, Play worlds, cover generation, chapter review, market radar, and analytics.
What this skill does
# InkOS - Story Creation AI Agent InkOS is a story creation AI agent for long-form novels, short fiction, scripts, fan works, continuations, covers, and open-world / branching interactive play. Prefer the Studio Chat / action-surface workflow for natural-language requests: the model proposes or invokes typed actions, InkOS executes them, and completion is derived from real tool results and files, not from prose claims. Long-form writing still uses the chapter pipeline internally: - **Input governance**: Architect / Planner / Composer preserve author intent, current focus, outline sections, and relevant truth files instead of injecting everything blindly. - **Writing**: Writer produces prose with length governance, craft rules, and context selected for the current task. - **Settlement and review**: Observer / Reflector update runtime state; Auditor checks continuity and quality; Reviser handles critical issues. The default write cycle keeps automatic repair conservative and leaves unresolved issues visible for human or agent follow-up. Truth files are persisted as schema-validated JSON (`story/state/*.json`) with markdown projections for human readability. SQLite temporal memory database (`story/memory.db`) enables relevance-based retrieval on Node 22+. ## v1.5.0 Mental Model Treat InkOS as a confirmable action system, not a bag of prompt shortcuts. - Natural-language requests should go through Studio Chat / TUI / `inkos interact` whenever possible. - Do not infer success from assistant prose. A book, short, cover, or play step is complete only when the corresponding tool result and files exist. - Use `short_fiction_run` only for a standalone short-fiction package. - Use `generate_cover` only for cover generation/regeneration. - Use `play_start` / `play_step` for Open World or Branching Interactive sessions. - Use long-form chapter tools only for existing long-form books. - Context is governed: protected facts and current intent should not be silently compressed away; compressible history may be summarized when the context budget is tight. v1.5 broadly improves instruction following, context management, weak-model formatting resilience, and error separation between InkOS execution, provider calls, and image generation. Still surface unresolved audit issues plainly instead of claiming they were fixed. ## When to Use InkOS - **English novel writing**: Native English support with 10 genre profiles (LitRPG, Progression Fantasy, Isekai, etc.). Set `--lang en` - **Chinese web novel writing**: 5 built-in Chinese genres (xuanhuan, xianxia, urban, horror, other) - **Fan fiction**: Create fanfic from source material with 4 modes (canon, au, ooc, cp) - **Batch chapter generation**: Generate multiple chapters with consistent quality - **Import & continue**: Import existing chapters from a text file, reverse-engineer truth files, and continue writing - **Style imitation**: Analyze and adopt writing styles from reference texts - **Spinoff writing**: Write prequels/sequels/spinoffs while maintaining parent canon - **Standalone short fiction**: Generate a complete short-fiction package with outline, draft, review artifacts, synopsis, selling points, and optional cover image - **Cover generation**: Generate or regenerate only a cover prompt and cover image from a title, synopsis, or visual direction without rerunning story writing - **Interactive worlds**: Start Open World or Branching Interactive sessions with world contracts, character agents, inventory/evidence/relationship state, guided choices, free actions, and optional image generation - **Quality auditing**: Detect AI-generated content and perform 33-dimension quality checks - **Genre exploration**: Explore trends and create custom genre rules - **Analytics**: Track word count, audit pass rate, and issue distribution per book ## Initial Setup ### First Time Setup ```bash # Initialize a project directory (creates config structure) inkos init my-writing-project # Configure your LLM provider (OpenAI, Anthropic, or any OpenAI-compatible API) # Prefer --api-key-env so the key never appears in shell history: export OPENAI_API_KEY=sk-xxx inkos config set-global --provider openai --base-url https://api.openai.com/v1 --api-key-env OPENAI_API_KEY --model gpt-4o # For compatible/proxy endpoints, use --provider custom and point ONLY to trusted endpoints: # inkos config set-global --provider custom --base-url https://your-trusted-proxy.com/v1 --api-key-env OPENAI_API_KEY --model gpt-4o ``` ### Multi-Model Routing (Optional) ```bash # Assign different models to different agents — balance quality and cost inkos config set-model writer claude-sonnet-4-20250514 --provider anthropic --base-url https://api.anthropic.com --api-key-env ANTHROPIC_API_KEY inkos config set-model auditor gpt-4o --provider openai inkos config show-models ``` Agents without explicit overrides fall back to the global model. ### Provider setup tip When the user needs an aggregator provider, point them to Studio's service settings. InkOS includes kkaiapi and OpenRouter as optional aggregator choices. For kkaiapi, use: - Chinese website: https://kkaiapi.com/ - English website: https://en.kkaiapi.com/ - Chinese API docs: https://kkaiapi.com/docs - English API docs: https://en.kkaiapi.com/docs - Chinese models/pricing: https://kkaiapi.com/models - English models/pricing: https://en.kkaiapi.com/models ### View System Status ```bash # Check installation and configuration inkos doctor # View current config inkos status ``` ## Common Workflows ### Workflow 1: Create a New Novel 1. **Initialize and create book**: ```bash inkos book create --title "My Novel Title" --genre xuanhuan --chapter-words 3000 # Or with a creative brief (your worldbuilding doc / ideas): inkos book create --title "My Novel Title" --genre xuanhuan --chapter-words 3000 --brief my-ideas.md ``` - Genres: `xuanhuan` (cultivation), `xianxia` (immortal), `urban` (city), `horror`, `other` - Returns a `book-id` for all subsequent operations 2. **Generate initial chapters** (e.g., 5 chapters): ```bash inkos write next book-id --count 5 --words 3000 --context "young protagonist discovering powers" ``` - The `write next` command runs the full pipeline: draft → audit → revise - `--context` provides guidance to the Architect and Writer agents - Returns JSON with chapter details and quality metrics 3. **Review and approve chapters**: ```bash inkos review list book-id inkos review approve-all book-id ``` 4. **Export the book** (supports txt, md, epub): ```bash inkos export book-id inkos export book-id --format epub ``` ### Workflow 2: Continue Writing Existing Novel 1. **List your books**: ```bash inkos book list ``` 2. **Continue from last chapter**: ```bash inkos write next book-id --count 3 --words 2500 --context "protagonist faces critical choice" ``` - InkOS maintains structured runtime state, readable Markdown projections, control docs, and temporal memory for consistency - If only one book exists, omit `book-id` for auto-detection 3. **Review and approve**: ```bash inkos review approve-all ``` ### Workflow 2.5: Shared Natural-Language Control (Recommended For OpenClaw) When InkOS is being driven by OpenClaw or another external agent, prefer the shared interaction executor instead of stitching together many ad-hoc CLI calls: ```bash inkos interact --json --message "continue the current book, but keep the pacing tighter" inkos interact --json --message "rewrite chapter 3" inkos interact --json --message "start an open-world detective game about a locked archive room" ``` The current JSON payload contains: - assistant response text - interaction session id / session kind / active book id when bound Real completion still comes from tool results and files. Do not treat assistant prose alone as proof that a book, chapter, short, cover, or play step was created. Use this as the
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.