Skip to main content

Crate nika_init

Crate nika_init 

Source
Expand description

§Nika Init — Project scaffolding

This crate contains workflow templates and the interactive course generated by nika init.

§Organization

  • minimal: 5 starter workflows (1 per verb: exec, fetch, infer, invoke, agent)
  • course: 12-level interactive learning path with checks, hints, and progress
  • context: Reusable context files for workflows
  • schemas: JSON schemas for structured output validation

§Usage

use nika_init::{get_all_workflows, get_all_context_files, get_all_schemas, WORKFLOWS_README};

Modules§

course
Course module — interactive learning path for Nika
error
Error types for nika-init crate.

Structs§

ContextFile
Context file definition
WorkflowTemplate
Workflow definition with metadata

Constants§

CONTEXT_BRAND
Brand guidelines context file
CONTEXT_CODE_REVIEW
Code review checklist
CONTEXT_DIR
Directory for context files
CONTEXT_PERSONA
Sample persona for content generation
CONTEXT_STYLE_GUIDE
Writing style guide
CONTEXT_TERMINOLOGY
Technical terminology reference
MINIMAL_AGENT
Agent verb — multi-turn LLM loop with tools
MINIMAL_EXEC
Exec verb — shell commands, env vars, piping
MINIMAL_FETCH
Fetch verb — HTTP requests, JSON APIs
MINIMAL_INFER
Infer verb — LLM generation
MINIMAL_INVOKE
Invoke verb — MCP tool calls
SCHEMAS_DIR
Directory for schema files
SCHEMA_ARTICLE
Article schema for content generation
SCHEMA_CODE_REVIEW
Code review result schema
SCHEMA_ENTITY_EXTRACTION
Entity extraction schema for knowledge graphs
SCHEMA_HEALTH_CHECK
API endpoint health check result
SCHEMA_MEETING_NOTES
Meeting notes schema
SCHEMA_SOCIAL_POST
Social media post schema
SHOWCASE_01_URL_STATUS
SHOWCASE_02_LANG_DETECT
SHOWCASE_03_SENTIMENT
SHOWCASE_04_TRANSLATION
SHOWCASE_05_API_TESTER
SHOWCASE_06_LINK_CHECKER
SHOWCASE_07_RSS_AGGREGATOR
SHOWCASE_08_GIT_ANALYZER
SHOWCASE_09_PKG_VERSIONS
SHOWCASE_10_WEB_SCRAPER
SHOWCASE_11_MULTI_FORMAT
SHOWCASE_12_IMAGE_ANALYSIS
SHOWCASE_13_NESTED_FOREACH
SHOWCASE_14_FAN_OUT_FAN_IN
SHOWCASE_15_RETRY_PIPELINE
WORKFLOWS_README
README content for workflows directory

Functions§

get_all_context_files
get_all_schemas
get_all_workflows
All workflows (5 minimal + 15 patterns + 15 advanced + 15 infra + 15 fetch)
get_context_files
Returns all context files
get_minimal_workflows
Return minimal workflow templates (5 total, 1 per verb)
get_schema_files
Returns all schema files
get_showcase_advanced_workflows
Return all 15 showcase advanced workflows
get_showcase_fetch_workflows
Return all 15 showcase fetch workflows.
get_showcase_infra_workflows
Return all 15 showcase infrastructure workflows.
get_showcase_workflows
Return all 15 showcase pattern workflows.