Introduction¶
In environments like Cursor and Claude Code, Agents often either only “think” (analyze, write, plan) or only “do” (run commands, write scripts). For multi-step tasks, you often have to break down the steps yourself and monitor intermediate results. If you want the model to automatically select the cognitive or execution path based on the task type, and string together code, tools, other Skills, and pure reasoning outputs into a repairable pipeline, you need a unified protocol written in SKILL.md, rather than manually writing a long system prompt every time.
Below is an introduction to Cogniexec (package name @indiv-wangjiaocheng/cogniexec) on SkillHub: authored by 波动几何 (Wang Jiaocheng), it is positioned as a “Cognitive Execution Skill” designed for AI Agents, task automation, and workflow orchestration scenarios.
What is this¶
Cogniexec is described in its SkillHub profile as a “Cognitive Execution Skill”: it integrates two layers of capability—a Cognitive Suite and an Execution Framework—and is equipped with an Orchestration Engine. The cognitive layer provides four thinking operation codes (Direct, Refine, Transfer, Construct); the execution layer generates code and executes scripts based on Large Language Models and command execution tools; the orchestration engine unifies code execution, tool calls, skill plugins, and cognitive outputs into primitives, combining them into execution chains of any complexity.
The primary maintenance and distribution channel is SkillHub (SkillHub Skill Page); the same skill content is also available on the 360 Security Skill Center and ClawHub. The SkillHub listing shows the current version as v1.0.4, with category tags including AI Agent, Task Automation, and Workflow Orchestration; the page AI rating is 4.5/5.0, and it has been scanned and labeled as risk-free by Keen Security Lab and Yunding Security Lab (subject to the SkillHub page).
The official API entry point is: https://api.skillhub.cn/user_e02e04b8/cogniexec (direct browser access may return 405; for installation and instructions, please refer to the SkillHub documentation and the SKILL.md within the skill package).
Core Functions¶
Task Router¶
After loading the skill, the Agent selects the entry point according to the routing logic in the official documentation:
- Multiple operation types or numerous steps → Orchestration Engine
- Requires writing code or running scripts → Layer 2: Execution Framework
- Primarily analysis, thinking, or creation → Layer 1: Cognitive Suite
For mixed tasks, you can first conceptualize in the cognitive layer, then write scripts in the execution layer; the layers and engine can be combined, and the router serves only as the default starting point.
Layer 1: Cognitive Suite (Four Modes)¶
| Mode | Applicable Direction (According to Official Description) |
|---|---|
| Direct | Translation, summarization, writing, data analysis, multi-step pipelines under clear goals; complex tasks can be decomposed into primitive chains |
| Refine | Refactoring, copywriting, optimizing workflows and design solutions |
| Transfer | Abstracting patterns from Domain A to apply them in Domain B |
| Construct | Exploring new products, business models, technical solutions from scratch |
When no mode is specified, Direct is the default.
Layer 2: Execution Framework¶
The workflow is: Think → Execute → Repair → Summarize. The execution layer supports shell commands, Python scripts, common CLIs, and HTTP calls; upon error, the model analyzes and retries (the official documentation states a maximum of 2 retries). regarding security grading, high-risk operations (such as rm -rf /) require user confirmation, medium-risk operations trigger warnings, and low-risk operations can be executed directly.
Orchestration Engine¶
Four types of primitives: Code Execution, Host Tools, Installed Skills (use_skill), and Cognitive Output. The orchestration protocol follows: Decompose → Plan → Execute → Repair → Aggregate. It also supports rules for conditional branching, loops, parallelism, and checkpoint recovery (see official SKILL.md).
Layer 3: Pre-built Scripts Library (scripts/)¶
The official list includes 17 Python scripts, most of which are declared to use only the standard library. They are available to be called directly as [Code] primitives during orchestration, reducing the overhead of “generate-save-execute” for every task. They mainly include:
- System & Terminal:
clipboard.py,tui_tool.py - Network:
http_client.py,net_diag.py,email_sender.py - Storage & Version:
db_tool.py,git_advanced.py,archive_tool.py - Binary & Media:
crypto_utils.py,image_batch.py,qr_tool.py - Data & Text Pipelines:
format_converter.py,data_processor.py,jq_tool.py,text_utils.py,file_manager.py,code_tools.py
For full parameters and examples, see references/command_reference.md in the package. Some capabilities require optional dependencies:
pip install pillow
pip install qrcode[pil]
pip install pyzbar
Installation and Activation¶
Via SkillHub (Recommended for Domestic Sources)¶
First, install the skillhub CLI according to the SkillHub Installation Guide. Then install the skill to the current Agent’s skills directory (you must use --dir, otherwise the default ./skills/ may not be recognized):
command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
skillhub install cogniexec --dir <your Agent skills directory>
Alternatively, you can instruct the Agent to install the package name according to the same documentation:
Please install `@indiv-wangjiaocheng/cogniexec` based on https://skillhub.cn/install/skillhub.md.
Common client skills paths (excerpted from SkillHub documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, you usually need to restart or reload the Agent so that SKILL.md is indexed.
Other Installation Methods (Same source family as SkillHub package content)¶
The secure-skills installation command provided by the 360 Security Skill Center:
npx secure-skills-cli add cogniexec
ClawHub / OpenClaw ecosystem:
openclaw skills install @wangjiaocheng/cogniexec
The package name prefixes may differ across channels (@indiv-wangjiaocheng/cogniexec vs. @wangjiaocheng/cogniexec); please refer to the documentation of the store you are using.
Typical Usage¶
After the skill is loaded, it runs according to the protocol without needing a separate configuration file; complex tasks will be automatically decomposed by the router or orchestration engine. The following two paragraphs are orchestration examples from the official documentation, which can be used directly as natural language requests to the Agent to observe if it executes according to the primitive chain.
Data Processing Pipeline (Cognition + Code + Tools)
Read a CSV file, clean the data, generate a statistical report, and save it as Excel
The primitive sequence indicated by the official source: Cognitive layer analyzes CSV and plans cleaning → Python cleans → Generate report and export to Excel → Tool saves file.
Research Analysis (Tools + Cognition + Code)
Research the core viewpoints of three papers, generate a comparison table, and create visualization charts
Indicative chain: Search to acquire literature → Cognitive Direct to extract viewpoints → Cognitive Refine to compare → Generate Markdown table → Execute visualization script.
If you need to call pre-built scripts, you should use the command forms found in the skill’s scripts/ and command_reference.md. The Agent will select them during orchestration, rather than bypassing security rules to execute unreviewed commands directly.
Applicable Scenarios & Notes¶
Who it is for
- Developers who need the Agent to automatically switch between “thinking clearly” and “running scripts successfully”
- Multi-step automation: data cleaning, batch file processing, lightweight ops, research aggregation followed by charting
- Teams already using SkillHub / OpenClaw who wish to layer on general orchestration and 17 standard library script primitives
Limitations & Notes
- The execution layer relies on the command execution capabilities provided by the host; high-risk operations require confirmation. Please back up your data before batch processing.
- Optional capabilities like
image_batch.pyandqr_tool.pyrequire additionalpippackages; some image capabilities are unavailable without pillow. clipboard.pydocumentation states it relies on Windows API; behavior on non-Windows environments needs actual testing.- “Web search” and similar functions in orchestration examples depend on whether the Agent possesses the corresponding tools; without tools, the chain will fall back to the parts the model can complete.
- Version numbers on SkillHub and ClawHub pages may not be synced (SkillHub shows v1.0.4, while ClawHub page was previously marked 1.0.2). Please refer to the package from your installation source.
Conclusion¶
Cogniexec integrates four cognitive modes, an LLM+command execution framework, and multi-step orchestration into a single Skill protocol, accompanied by 17 reusable Python script primitives. It serves as a suitable default workflow for Agents to “Think—Do—Chain”. Please refer to SkillHub for installation and updates.
- SkillHub Skill Page: https://skillhub.cn/skills/cogniexec
- Official API Entry: https://api.skillhub.cn/user_e02e04b8/cogniexec
- SkillHub Installation Documentation: https://skillhub.cn/install/skillhub.md