基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/alchemiststudiosDOTai/sophon --skill sophon-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | sophon-cli |
| description | Rust CLI for provider-agnostic web search using Brave Search or Exa APIs |
| title | sophon-cli Agent Skill |
| when_to_read | ["When using or maintaining the repository-specific Codex skill for sophon-cli.","When aligning local agent behavior with this project’s commands and boundaries."] |
| summary | Repository-specific Codex skill instructions for sophon-cli, capturing project commands, validation expectations, and operational guardrails. |
| ontology_relations | [{"relation":"guides","target":"agent-workflows","note":"Defines agent behavior for this repository."}] |
sophon-cli) with a provider-agnostic domain layersrc/main.rs — entrypoint wiring CLI args, app service, providers, and HTTP transportsrc/domain/ — pure types and traits (no HTTP, no CLI parsing)src/providers/brave/ — Brave-specific DTOs, mapper, config, and clientsrc/providers/exa/ — Exa-specific DTOs, mapper, config, and clientsrc/transport/ — HttpClient trait and ReqwestHttpClient adaptersrc/app/ — SearchService orchestratorsrc/cli/ — clap argument parsing and text renderingtests/architecture_test.rs — source-scan tests enforcing layer boundariesRun just check before committing. This runs:
cargo fmt --checkcargo clippy -- -D warnings -W clippy::complexity -W clippy::cognitive_complexitycargo testmdbook buildsrc/domain/ must NOT import crate::providers, crate::transport, crate::cli, crate::appsrc/transport/ must NOT import crate::providers, crate::cli, crate::appsrc/providers/ must NOT import crate::cli, crate::appsrc/app/ must NOT import crate::clisrc/cli/ may import render_textCopy .env.example to .env and fill in the API key for the provider you want to use:
BRAVE_API_KEY for Brave SearchEXA_API_KEY for Exasrc/providers/<name>/ with config.rs, dto.rs, mapper.rs, client.rs, then register in src/providers/mod.rssrc/domain/ and update src/domain/mod.rssrc/cli/output.rs and add unit tests theredocs/ and run mdbook build to verify