复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
NETA Skills is a collection of powerful AI agent skills and accompanying CLI tools designed for...
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
NETA Skills is a collection of powerful AI agent skills and accompanying CLI tools designed for interacting with the Neta Art API. Built for developers and AI agents, it seamlessly extends any agent's capabilities to generate multimedia, manage characters, and process audio/video workflows.
You can get your access token (NETA_TOKEN) from the Neta Open Portal. On the global API host, you may also sign in with the CLI login command (OAuth device flow) instead of pasting a token into every environment—see Authentication below.
api.talesofai.com), you can use OAuth device authorization via neta login instead of copying NETA_TOKEN into every environment.The primary way to use this project is by installing the skills into your AI agent environment.
Install the unified neta skill into your agent:
npx skills add talesofai/neta-skills/skills/neta
You can also install the specialized skills separately if your agent prefers more granular capabilities:
# Community exploration (hashtags, spaces, interactive feed)
npx skills add talesofai/neta-skills/skills/neta-community
# Creation workflows (image / video / song) and premium subscription flows
npx skills add talesofai/neta-skills/skills/neta-creative
# Discovery & suggestions (keywords, tags, categories, content)
npx skills add talesofai/neta-skills/skills/neta-suggest
# Space navigation & exploration
npx skills add talesofai/neta-skills/skills/neta-space
# Character VToken creation and management
npx skills add talesofai/neta-skills/skills/neta-character
# Elementum VToken creation and management
npx skills add talesofai/neta-skills/skills/neta-elementum
# AI-driven interactive story adventures (Adventure Campaigns)
npx skills add talesofai/neta-skills/skills/neta-adventure
The skill includes 49 commands for various tasks:
| Category | Command | Description |
|---|---|---|
| User | login | Start OAuth device login (request-code) or complete it (verify-code); stores tokens locally on success |
logout | Clear stored CLI session (access token and any in-progress device flow) | |
me | Show the authenticated user's profile, AP balance, and asset totals | |
| Adventure Campaigns | create_adventure_campaign | Create an AI-driven interactive story adventure |
update_adventure_campaign | Update an existing adventure campaign | |
list_my_adventure_campaigns | List your created adventure campaigns | |
request_adventure_campaign | Load full campaign details for play mode | |
| Creation | make_image | Generate images from text prompts |
make_video | Generate videos from images and prompts | |
make_song | Compose songs with custom prompts and lyrics | |
remove_background | Remove the background from an image | |
edit_collection | Edit an existing collection (name, description, tags, status, etc.) | |
publish_collection | Publish or update a collection | |
search_character_or_elementum | Search reusable TCP building blocks (characters / elements / flows) | |
get_ap_info | Get detailed AP (Action Points) balance breakdown | |
get_ap_history | Get paginated AP consumption and recharge history | |
list_my_artifacts | List your generated media assets with filters | |
upload | Upload a local or remote media file to create a media artifact | |
| Premium | get_current_premium_plan | Get the signed-in user’s current tier and subscription end when applicable |
list_premium_plans | List available premium plans and SPU UUIDs | |
create_premium_order | Create an order for a plan (by SPU UUID) | |
get_premium_order | Fetch details for a single premium order | |
list_premium_orders | List premium orders (paginated) | |
pay_premium_order | Start payment for an unpaid order (e.g. Stripe Checkout) | |
| VToken Management | create_character | Create a character VToken (consumes credits) |
update_character | Update an existing character VToken | |
list_my_characters | List all characters created by the current user | |
create_elementum | Create an elementum VToken (consumes credits) | |
update_elementum | Update an existing elementum VToken | |
list_my_elementum | List all elementa created by the current user | |
| Characters | request_character_or_elementum | Fetch character or elementum details by name or UUID |
| Community | get_hashtag_info | Get details and lore for a specific hashtag |
get_hashtag_characters | Get a list of characters under a hashtag | |
get_hashtag_collections | Get curated collections under a hashtag | |
read_collection | Read details for a specific collection (玩法) | |
list_spaces | List spaces that can be explored | |
list_space_topics | List topics available under a specific space | |
request_interactive_feed | Get interactive content feeds for collections, spaces, and users | |
suggest_keywords | Get autocomplete suggestions for search keywords | |
suggest_tags | Get recommended hashtags related to a keyword | |
suggest_categories | Get navigation suggestions for taxonomy categories | |
validate_tax_path | Validate that a taxonomy path is valid | |
suggest_content | Discover content via recommend, search, or exact filter modes | |
get_fan_list | Get the list of users who follow the current user | |
get_subscribe_list | Get the list of creators the current user follows | |
favor_collection | Favorite or unfavorite a collection | |
like_collection | Like or unlike a collection | |
subscribe_user | Follow or unfollow a creator | |
create_comment | Create a comment on a collection |
@talesofai/neta-skills)The project also ships a standalone CLI package @talesofai/neta-skills for testing, scripting, and CI automation.
# Global install (recommended)
npm install -g @talesofai/neta-skills
# Or use npx / pnpm dlx without global install
npx @talesofai/neta-skills --help
pnpm dlx @talesofai/neta-skills --help
Configure your environment:
# Set NETA_TOKEN in your environment or put it into a .env / .env.local file
export NETA_TOKEN=your_token_here
NETA_TOKEN vs login)You can authenticate in either of these ways:
Environment token (works everywhere)
Set NETA_TOKEN from the Neta Open Portal. The CLI and API client send it as the x-token header when no stored session exists.
CLI device login (global API only)
When NETA_API_BASE_URL points at the global host (…talesofai.com), you can run:
npx -y @talesofai/neta-skills@latest login
The command returns OAuth device fields. Open verification_uri_complete in a browser, finish sign-in, then run:
npx -y @talesofai/neta-skills@latest login --action verify-code
On success, tokens are stored under the app config directory (see NETA_CONFIG_DIR below). Subsequent API calls use Authorization: Bearer … until the session expires or you run logout.
If the CLI reports that login is not supported for your region (non-global API), use NETA_TOKEN instead.
# Get general help or specific command help
npx -y @talesofai/neta-skills@latest --help
npx -y @talesofai/neta-skills@latest make_image --help
# Example: Generate an image
npx -y @talesofai/neta-skills@latest make_image --prompt "A cyberpunk cityscape at night" --aspect "16:9"
# Example: Search for characters or elementum
npx -y @talesofai/neta-skills@latest search_character_or_elementum --keywords "fantasy"
neta-skills/
├── skills/
│ ├── neta/ # Unified Neta skill (agent-first)
│ │ └── SKILL.md # Core skill documentation (EN)
│ ├── neta-community/ # Community / hashtag / space exploration skills (EN)
│ ├── neta-creative/ # Image / video / song creation skills (EN)
│ ├── neta-suggest/ # Discovery & suggestion skills (EN)
│ ├── neta-space/ # Space navigation & exploration skills (EN)
│ ├── neta-character/ # Character VToken creation & management (EN)
│ ├── neta-elementum/ # Elementum VToken creation & management (EN)
│ ├── neta-adventure/ # Interactive story adventures / Adventure Campaigns (EN)
│ └── zh_cn/ # Chinese-localized skills & references
│ ├── neta/
│ ├── neta-community/
│ ├── neta-creative/
│ ├── neta-suggest/
│ ├── neta-space/
│ ├── neta-character/
│ ├── neta-elementum/
│ └── neta-adventure/
├── src/ # TypeScript source for the CLI
│ ├── apis/ # Typed Neta API client helpers (incl. commerce)
│ ├── commands/ # CLI command groups: user, creative, community, adventure, VToken, premium, …
│ ├── utils/ # Shared utilities
│ └── cli.ts # CLI entrypoint (TypeScript)
├── bin/ # Built JavaScript output for the CLI
│ ├── apis/
│ ├── commands/
│ ├── utils/
│ └── cli.js # CLI entrypoint (compiled JS)
├── scripts/
│ └── postbuild.js # Build/post-build helpers
├── .env.example # Environment variable template
├── package.json # Root package config / scripts
├── pnpm-lock.yaml # Dependency lockfile
├── tsconfig.json # TypeScript configuration
├── biome.json # Biome (formatter / linter) config
└── lint-staged.config.mjs # lint-staged configuration
The skills/neta/references/ directory contains detailed best practice workflows. These guides are designed to help AI agents (and developers) understand how to combine multiple commands to achieve complex goals effectively.
Agents use these references to learn the optimal sequence of actions, parameter tuning, and standard operating procedures for specific NETA Art workflows, such as:
skills/neta-creative/references/premium.md.skills/neta-adventure/references/.Both the AI agent skills and the CLI require the following environment configuration:
| Variable | Required | Default | Description |
|---|---|---|---|
NETA_TOKEN | Conditional* | - | API access token from the Neta Open Portal. Required when not using a CLI session from login. |
NETA_API_BASE_URL | ❌ | https://api.talesofai.com | Base URL for the Neta API. Device login is only available when this resolves to the global host (…talesofai.com). |
NETA_AUTH_API_BASE_URL | ❌ | derived from NETA_API_BASE_URL | OIDC / token endpoints for login and refresh (override for custom stacks). |
NETA_CLIENT_ID | ❌ | built-in public client id | OAuth client id for device login and refresh. |
NETA_CONFIG_DIR | ❌ | OS-specific config path | Directory where the CLI stores OAuth tokens and device-flow state (see env-paths + neta-cli). |
DISABLE_TELEMETRY | ❌ | unset | Set to 1 to disable CLI usage analytics (see below). |
* If you have completed login / verify-code successfully on the global API, the CLI can run without NETA_TOKEN until you logout or the refresh session is cleared.
The @talesofai/neta-skills CLI sends lightweight usage data—such as which command ran, the options you passed, CLI version and locale, a coarse API-region hint, outcomes and timing, and your user UUID when signed in (not your API token)—so we can measure reliability and improve the experience.
To disable analytics entirely, set DISABLE_TELEMETRY=1 in your environment; no telemetry HTTP requests are sent.
The CLI and skills automatically detect the current locale and map it to internal language variants:
zh (for example, zh_CN, en_US) → use zh_cn docs and metadata.en_us docs and metadata.In terminal environments, locale is typically controlled by:
LC_ALL, LC_MESSAGES, LANG, and LANGUAGE.If you want to force a specific language for a single command, you can prefix it with the desired locale, for example:
LC_ALL=zh_CN.UTF-8 npx -y @talesofai/neta-skills@latest make_image --help
LANG=en_US.UTF-8 npx -y @talesofai/neta-skills@latest make_image --help
To develop and test locally:
# Install dependencies
corepack enabled
pnpm i
# Run TypeScript type checking
pnpm type-check
# Run lint
pnpm lint
# Test CLI commands locally (commands without extra flags)
pnpm dev -- <command>
# Subcommands with options: `pnpm` may insert `--` before argv; use the entrypoint directly, e.g.:
# NODE_ENV=development node src/cli.ts get_ap_history --page_size 5
# Build bin scripts
pnpm build
This project is open-sourced under the MIT License.
name: neta
description: Neta capability index and routing skill - help choose the appropriate Neta-related skill (neta-space / neta-creative / neta-adventure / neta-community / neta-suggest). Use this skill when you need to understand Neta's overall capabilities, decide which skill fits the current task, or migrate from older documentation that referenced the monolithic neta skill.Used for overview and routing of Neta-related skills, rather than executing concrete commands directly.
This skill used to be a "kitchen-sink" Neta interaction skill. It has now been split into multiple focused skills. Prefer using the skills listed below; use this skill only to understand the capability map or when migrating from older docs.
In environments that support skills add, install sub-skills as needed:
# Spaces and worldbuilding
npx skills add talesofai/neta-skills/skills/neta-space
# Creative content (images/videos/songs/MVs)
npx skills add talesofai/neta-skills/skills/neta-creative
# Community browsing and interactions
npx skills add talesofai/neta-skills/skills/neta-community
# Research and content suggestions
npx skills add talesofai/neta-skills/skills/neta-suggest
# Character creation and management
npx skills add talesofai/neta-skills/skills/neta-character
# Elementum (visual style/concept) creation and management
npx skills add talesofai/neta-skills/skills/neta-elementum
# Interactive story adventures (Adventure Campaigns)
npx skills add talesofai/neta-skills/skills/neta-adventure
neta-spaceneta-creativeneta-adventureneta-communityneta-suggestneta-characterneta-elementumRegion / fallback: Device login is only supported when the CLI is using the global API host (see NETA_API_BASE_URL / talesofai.com). If the command errors with “not supported in the current region”, tell the user to authenticate via the NETA_TOKEN environment variable instead.
neta-spaceResponsibilities:
Use when:
See skills/neta-space/SKILL.md for full details.
neta-creativeResponsibilities:
read_collection.Use when:
See skills/neta-creative/SKILL.md for full details.
neta-adventureResponsibilities:
create_adventure_campaign, update_adventure_campaign).list_my_adventure_campaigns).request_adventure_campaign).Use when:
See skills/neta-adventure/SKILL.md for full details.
neta-communityResponsibilities:
Use when:
See skills/neta-community/SKILL.md for full details.
neta-suggestResponsibilities:
suggest_keywords).suggest_tags).suggest_categories / validate_tax_path).suggest_content).Use when:
See skills/neta-suggest/SKILL.md for full details.
neta-characterResponsibilities:
Use when:
See skills/neta-character/SKILL.md for full details.
neta-elementumResponsibilities:
Use when:
See skills/neta-elementum/SKILL.md for full details.
If you encounter older docs or scripts that call commands directly under neta, migrate them according to this table:
| Legacy capability | New skill |
|---|---|
| Space/tag lore and space browsing | neta-space |
| Image/video/song/MV creation | neta-creative |
| Interactive story / Adventure Campaigns | neta-adventure |
| Collection details, feeds, likes/interacts | neta-community |
| Keyword/tag/category/recommendation research | neta-suggest |
| Character creation and management | neta-character |
| Elementum (visual style/concept) creation | neta-elementum |
For new development, always prefer the focused sub-skills and avoid adding new command examples directly to this skill.
评论 (0)
暂无评论,成为第一个评论者吧!