REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Coding Agents skills for Synalinks OSS
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/skills/synalinks-synalinks-skills)在同一工作中把 AI 连到服务的 MCP
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
MCP server for terminal commands, file operations, and process management
同类工作,排序与 Skill 列表相同
| 本项 synalinks-skills | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| 作者 | SynaLinks | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skill 数 | 1 | 1 | 1 | 1 | 1 |
| GitHub 星标 | 912 | 467,235 | 234,125 | 149,873 | 144,332 |
| 最近代码更新 | 2026年11月17日 | 2026年11月18日 | 2026年4月20日 | 2026年11月18日 | 2026年11月18日 |
| 许可证 | Apache-2.0 | MIT | – | Apache-2.0 | MIT |
SynaLinks 提供的 1 个 Skill(指令集),AI 读取后照做 · 不是 MCP server
MCP = 手
把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。
Skill = 手册
教 AI 怎么做某项工作的文本文件,不连接任何服务。
有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。
Claude CodeClaude (เว็บ/แอป)CodexCursorGemini CLIGitHub CopilotWindsurfOpenCode
依据开发者 README 和 repo 中的文件夹
GitHub account SynaLinks (organization), 3 years old
★ 912 stars · code last changed 2026年11月17日
18 scripts that can run on a computer: scripts/chain_of_thought.py, scripts/conditional_branches.py, scripts/custom_dataset.py, scripts/custom_module.py and 14 more
Could not check every script (some are too large); read them first
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 1753284 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
第一步:你用哪个 AI?
选择你用的应用,本页只显示该应用的安装方法
Uploading to claude.ai would fail: the description is over 200 characters (990). Use "Let the AI install it" instead
复制这句话,粘贴到 Claude Code 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
重新打开 Claude Code,输入 /synalinks,或直接提出相关任务,Claude 会自动选用
Checked against official docs 2026年11月12日 · Source: code.claude.com
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
npx skills add SynaLinks/synalinks-skills --skill synalinks摘自开发者 README,会下载并运行开发者的代码
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/synalinks/synalinks-skills.git /tmp/popnx-skill-synalinks-synalinks-skills-1753284 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-synalinks-synalinks-skills-1753284/skills/synalinks' ~/.claude/skills/synalinksChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill
在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
把 synalinks 文件夹放到 ~/.agents/skills/synalinks
~ 是你的主文件夹($HOME)
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/synalinks/synalinks-skills.git /tmp/popnx-skill-synalinks-synalinks-skills-1753284 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-synalinks-synalinks-skills-1753284/skills/synalinks' ~/.agents/skills/synalinksChecked against official docs 2026年11月15日 · Source: learn.chatgpt.com
不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill
想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/synalinks/synalinks-skills.git /tmp/popnx-skill-synalinks-synalinks-skills-1753284 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-synalinks-synalinks-skills-1753284/skills/synalinks' ~/.agents/skills/synalinks复制这句话,粘贴到 Cursor 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
在 Cursor 的 Agent 聊天中输入 / 并选择 synalinks
Checked against official docs 2026年11月12日 · Source: cursor.com
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/synalinks/synalinks-skills.git /tmp/popnx-skill-synalinks-synalinks-skills-1753284 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-synalinks-synalinks-skills-1753284/skills/synalinks' ~/.cursor/skills/synalinks适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。
已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹
✓ 命令已检查 2026年11月18日
以下文字来自开发者的 repo,不是 PopNx MCP 的指令
显示前 8,000 个字符 · 在 GitHub 打开完整文件
---
name: synalinks
description: "Use for anything involving the Synalinks neuro-symbolic LM framework (Keras-inspired): DataModel/Field/Input, JSON operators (+ & | ^ ~), synalinks.ops; LanguageModel/EmbeddingModel and provider prefixes; DecisionModel (TypeSafe jev decision models, decision_model=, min_confidence/threshold); the Program class and its four APIs, save/load; modules (Generator, ChainOfThought, SelfCritique, PythonSynthesis, custom Module); control flow (Decision, MultiDecision, Branch, And/Or/Xor, guards); agents (FunctionCallingAgent, RLM, DeepAgent, Tool, MCP); KnowledgeBase/RAG; training (compile/fit/evaluate/predict, callbacks, KerasTuner tuners); rewards (ExactMatch, CosineSimilarity, LMAsJudge, ProgramAsJudge, RubricsAsJudge and presets like Faithfulness/Toxicity, AgentAsJudge, DeepAgentAsJudge, RLMAsJudge, ComposableReward, BatchReward) and metrics; optimizers (RandomFewShot, OMEGA); datasets, visualization. Synalinks is Keras-shaped: without guidance LMs mix Keras/LangChain/DSPy syntax."
---
# Synalinks
Synalinks is an open-source, Keras-inspired framework for building neuro-symbolic
LM applications (RAGs, agents, self-evolving reasoning) with in-context
reinforcement learning. This skill is the single entry point: each section below
is a scannable overview that points to a **runnable script + its captured run log**
and a **deep-dive reference doc** under `references/`.
## Core abstractions
- **DataModel** — Pydantic-style schema for structured I/O (replaces tensors).
- **Module** — async computational unit processing JSON data (replaces layers).
- **Program** — DAG of modules with conditional logic (replaces models).
- **Reward / Optimizer** — guide training by *maximizing reward* (no gradients;
prompts/examples/plans are the trainable variables).
- **DecisionModel** — answers typed questions (yes/no, choice, score) with
calibrated probabilities instead of generating text; used for decisions.
## Universal gotchas (apply everywhere)
1. **All module constructors are keyword-only** (`*` after `self`). Call
`Generator(data_model=Answer, language_model=lm)`, never positionally. The
one exception is `Tool(func, *, ...)` — `func` stays positional.
2. **`instructions` MUST be a string**, never a list — passing a list raises
`ValidationError`.
3. **All `call()` methods are async** — `await` every module/program call.
4. **`language_model`/`embedding_model` may be omitted** if a process-wide
default is set (`set_default_language_model(...)`); resolved at call time.
5. **Always check for `None` results** — a failed LM call or a non-activated
branch yields `None`.
6. **A `DecisionModel` is never a `language_model`** — passing one as
`language_model` raises. Modules that can decide take `decision_model=`.
## Quick Start
```python
import synalinks, asyncio
class Query(synalinks.DataModel):
query: str = synalinks.Field(description="The user query")
class Answer(synalinks.DataModel):
answer: str = synalinks.Field(description="The answer")
async def main():
lm = synalinks.LanguageModel(model="ollama/mistral")
inputs = synalinks.Input(data_model=Query)
outputs = await synalinks.Generator(data_model=Answer, language_model=lm)(inputs)
program = synalinks.Program(inputs=inputs, outputs=outputs, name="simple_qa")
result = await program(Query(query="What is the capital of France?"))
print(result.prettify_json())
asyncio.run(main())
```
Runnable: [`scripts/simple_qa.py`](scripts/simple_qa.py) → log [`references/simple_qa.log`](references/simple_qa.log).
---
## Core: DataModel, operators, models
`DataModel` defines structured I/O; `Field(description=...)` shapes what the LM
emits. Complex types, nested models, `Optional`/`Enum`/`List` all work.
`ChatMessages` is the special conversational data model. `LanguageModel` and
`EmbeddingModel` are `Module` subclasses accepting `**default_kwargs`
(`temperature`, `top_p`, `max_tokens`, `reasoning_effort`, `dimensions`, ...)
forwarded to every call, plus `fallback=` (string/dict/instance, auto-coerced).
**JSON operators** (circuit-like logic on DataModels):
| Op | Symbol | Behavior |
|----|--------|----------|
| Concat | `+` | Merge fields; **raises** if either is None |
| And | `&` | Merge; None if either is None |
| Or | `\|` | Non-None value; concatenates if both present |
| Xor | `^` | One if exactly one present, else None |
| Not | `~` | Always None (drops a branch) |
| Contains | `in` | Field-subset check |
Module forms: `synalinks.And()/Or()/Xor()/Not()` (take a list). `synalinks.ops`
has `concat`, `in_mask`/`out_mask`, `factorize`, `logical_*`. Config helpers:
`enable_logging()`, `enable_observability()`, `set_seed()`, `clear_session()`.
- Deep dives: [`references/api-reference.md`](references/api-reference.md),
[`references/data-models.md`](references/data-models.md)
- [`scripts/subclassing_modules.py`](scripts/subclassing_modules.py) →
[`references/subclassing_modules.log`](references/subclassing_modules.log)
## Programs: the four building APIs
`Program` inherits from both `Trainer` and `Module` (a Program is itself a
module — nest freely).
| API | When |
|-----|------|
| **Functional** | Default. Multi-IO graphs, branching, parallelism. |
| **Sequential** | Strictly linear; **requires `description`** (else `ValueError`). |
| **Subclassing** | Custom control flow in `call()`; **must** implement `get_config`/`from_config` to be serializable. |
| **Mixed (Subclass + Functional)** | Class API over an introspectable graph; build it in `build()` and call `super().__init__()` twice. Materialize on a symbolic `Input`, not concrete data. |
Save/load: `program.save("p.json")` / `Program.load(...)` (config + variables +
optimizer/reward state). `to_json()` is inspect-only (no variables).
Inspection: `summary(expand_nested=True)`, `get_module(...)`,
`trainable_variables`, `get_state_tree`/`set_state_tree`. Register custom
subclasses with `@synalinks.saving.register_synalinks_serializable()`.
- Deep dive: [`references/programs.md`](references/programs.md)
- [`scripts/four_apis.py`](scripts/four_apis.py) →
[`references/four_apis.log`](references/four_apis.log)
## Modules: generation & custom subclassing
- **Generator** — core structured-output LM module. Trainable vars:
`instructions`, `examples`. Knobs: `return_inputs`, `temperature`,
`reasoning_effort`, `use_inputs_schema`, `streaming`.
- **ChainOfThought** — Generator that prepends a `thinking` field
(`reasoning_effort="low"` by default).
- **SelfCritique** — produces a `critique` and optional `reward` in `[0,1]`
(with `decision_model=`: only the `reward`, graded on five levels).
- **Identity** — pass-through placeholder.
- **PythonSynthesis** — generates/executes Python in a sandbox (no LM call; the
script is the trainable variable; needs advanced optimizers).
- **SequentialPlanSynthesis** — *internal only* (not in public API; import from
`synalinks.src.modules.synthesis.sequential_plan_synthesis`).
Custom modules: subclass `Module`, implement async `call()`,
`compute_output_spec()`, and `get_config`/`from_config`; use `add_variable(...)`
for trainable state; return `None` to short-circuit logical flows.
- Deep dive: [`references/modules-catalog.md`](references/modules-catalog.md)
- [`scripts/chain_of_thought.py`](scripts/chain_of_thought.py) →
[`references/chain_of_thought.log`](references/chain_of_thought.log)
- [`scripts/custom_module.py`](scripts/custom_module.py) →
[`references/custom_module.log`](references/custom_module.log)
## Control flow: routing, parallelism, guards
- **Decision** — single-label routing; output `{thinking, choice}` constrained
to `labels`. **MultiDecision** — multi-label (`choices: list[str]`).
Both take `decision_model=` (output without `thinking`); `Decision` then
accepts `min_confidence` (abstains → `None`), `MultiDecision` `threshold`.
- **Branch** — route to one of N modules; `branches`/`labels` same length;
non-提问、分享技巧或报告无法使用。按“有帮助”数量排序。