Token导航 LogoToken导航

Agent Skill · 研究检索

4d-v21(4D V21 搜索)

4d-v21 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

4d-v21 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 58,252。

总安装 419周安装 18GitHub Stars 7下载 147核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:4d-v21(4D V21 搜索)
来源仓库:https://github.com/ganbin/4d-development-skill
仓库路径:skills/4d-v21
安装命令:
npx skills add https://github.com/ganbin/4d-development-skill --skill 4d-v21
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ganbin/4d-development-skill --skill 4d-v21

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

4d-v21 是专用于 4D v21 版本的知识检索技能,内置完整官方文档库。适用于在 Codex、Claude、Cursor、Gemini CLI 中查询 4D v21 特定功能与 API。优先读取嵌入 docs/ 文件夹中的权威参考文档,避免依赖训练数据。

安装命令:npx skills add https://github.com/ganbin/4d-development-skill --skill 4d-v21。使用时应先查阅 references/ 文件,再按需深入 docs/ 目录,必要时用 grep 搜索。

来源仓库内路径:skills/4d-v21

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ganbin/4d-development-skill --skill 4d-v21;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

4d-v21 怎么安装?

在终端执行 npx skills add https://github.com/ganbin/4d-development-skill --skill 4d-v21。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

4d-v21 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

4d-v21 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

4d-v21 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

4d-v21 用的人多吗?

公开数据是累计安装 419 次,近一周安装 18 次,下载 147 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

4d-v21 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
4d-v21

4D V21 搜索 · 本页

4197需要联网未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

4D Development Expert (v21)

Skill Version

  • 4D Version: v21
  • Skill Version: 1.0
  • Docs: Full official 4D v21 documentation embedded in docs/ (3,387 files)

This skill targets 4D v21 specifically. Do not assume features from other versions exist unless verified in the embedded documentation.


How to Use This Skill

CRITICAL: For any 4D task, ALWAYS prefer reading the embedded documentation files (docs/) over relying on training data. The docs/ folder contains the authoritative 4D v21 reference.

Workflow:

  1. Check this file for critical rules and routing
  2. Read the relevant references/ file for curated knowledge and patterns
  3. If more detail is needed, read the specific docs/ file pointed to by the reference
  4. For edge cases, use grep to search across docs/
  5. Only fall back to training data if docs/ doesn't cover the topic

Priority reading: Always check references/manual-insights.md — it contains real-world corrections from code reviews that override documentation.


Local Conventions

Before providing 4D guidance, check if a local/ directory exists in this skill folder with project-specific conventions:

ls local/*.md 2>/dev/null

If files exist, read them first. The local/ directory (gitignored) can contain:

  • Company-specific naming conventions and documentation standards
  • Project-specific database schemas
  • Version overrides (e.g., if project uses 4D v19.2 instead of v21)

Critical Syntax Rules

These are the most common sources of bugs in 4D code. Know them by heart.

1. Assignment vs Comparison

// WRONG: = is comparison, returns True/False
$name = Request("Enter name")        // Compares, doesn't assign!
If ($input = Request("Name"))        // WRONG: compares, doesn't assign

// CORRECT: := is assignment
$name:=Request("Enter name")        // Assigns
$input:=Request("Name")
If ($input # "")                     // Then compare separately

Rule: := assigns. = compares. Never mix them.

2. Object Properties Are Case-Sensitive

// Variables: case-INSENSITIVE
$MyVar:="test"
$myvar:="changed"            // Same variable!

// Object properties: case-SENSITIVE
$obj.Name:="John"
$obj.name:="Jane"            // Different properties!

3. Collection vs Array Indexing

// Collections: 0-based
$col:=New collection("A"; "B"; "C")
$first:=$col[0]              // "A"

// Arrays: 1-based with special element zero
ARRAY TEXT($arr; 3)
$arr{1}:="A"                 // First element
$arr{0}:="default"           // Special element zero

4. Null Queries Require Literal Syntax

// WRONG: Null as placeholder doesn't work
$result:=ds.Users.query("email = :1"; Null)

// CORRECT: literal null in query string
$result:=ds.Users.query("email = null")
$active:=ds.Users.query("email != null")

5. Linked Collection Queries

// WRONG: conditions can match DIFFERENT collection elements
ds.Users.query("projects[].status = 'active' AND projects[].budget > 1000")

// CORRECT: [a] links conditions to the SAME element
ds.Users.query("projects[a].status = 'active' AND projects[a].budget > 1000")

6. Numeric Object Properties Are Always Real

$obj:=New object("count"; 5)
Value type($obj.count)  // Returns Is real, NEVER Is longint

7. Decimal Separator Is Always Period

$price:=19.99    // CORRECT — always period
$price:=19,99    // WRONG — two separate numbers!

8. 4D has a strict left-to-right precedence

if ($length > 1+$i) // Runtime error: $length>1 -> true -> true+$i -> error
if ($length > (1+$i)) // No error

$result:=3+4*5 // 35
$result:=3+(4*5) // 23

Quick Decision Router

By Task

TaskRead FirstThen If Needed
Syntax errors, operatorslanguage-syntax.mddocs/Concepts/operators.md
Data types, conversionsdata-types.mddocs/Concepts/data-types.md
ORDA, entity classesorda-modern.mddocs/ORDA/ordaClasses.md
Database queriesquery-patterns.mddocs/API/DataClassClass.md
Error handlingerror-handling.mddocs/Concepts/error-handling.md
Legacy/classic codeclassic-patterns.mddocs/Concepts/arrays.md
Forms, events, UIforms-and-ui.mdevents-index.md
Web server, REST APIweb-and-rest.mdrest-index.md
Specific class APIapi-index.mddocs/API/{ClassName}Class.md
Specific commandcommands-index.mddocs/commands/{name}.md
Legacy commandlegacy-commands-index.mddocs/commands-legacy/{name}.md

By Error / Symptom

Error or SymptomRead
"Type mismatch" or wrong typedata-types.md
"Cannot use = to assign" / silent assignment buglanguage-syntax.md
Query returns wrong resultsquery-patterns.md
"Null query" not workingmanual-insights.md
Entity/EntitySelection methodsorda-modern.md then api-index.md
Form events not firingforms-and-ui.md then events-index.md
Process variables not workingclassic-patterns.md
REST endpoint 404 or auth errorweb-and-rest.md
Transaction or save errorerror-handling.md
local keyword confusionmanual-insights.md
Need to find a specific 4D commandcommands-index.md
Need to find a legacy commandlegacy-commands-index.md

Docs Navigator

The docs/ folder contains the full official 4D v21 documentation (3,387 files, 48MB). Use this section to find the right file.

Category Quick Lookup

NeedDirectoryFile PatternExample Path
Class API referencedocs/API/{Class}Class.mddocs/API/CollectionClass.md
ORDA conceptsdocs/ORDA/{topic}.mddocs/ORDA/entities.md
Modern commandsdocs/commands/{command-name}.mddocs/commands/dialog.md
Commands by themedocs/commands/theme/{Theme}.mddocs/commands/theme/JSON.md
Language conceptsdocs/Concepts/{topic}.mddocs/Concepts/classes.md
REST endpointsdocs/REST/${endpoint}.mddocs/REST/$filter.md
Form eventsdocs/Events/on{Event}.mddocs/Events/onClicked.md
Form objectsdocs/FormObjects/{type}_overview.mddocs/FormObjects/listbox_overview.md
Web serverdocs/WebServer/{topic}.mddocs/WebServer/sessions.md
Legacy commandsdocs/commands-legacy/{command-name}.mddocs/commands-legacy/alert.md
Settingsdocs/settings/{topic}.mddocs/settings/web.md
Project structuredocs/Project/{topic}.mddocs/Project/architecture.md
AI Kitdocs/aikit/variousdocs/aikit/
ViewProdocs/ViewPro/variousdocs/ViewPro/
WriteProdocs/WritePro/variousdocs/WritePro/

Search Patterns

When you need to find something specific across docs/:

# Find a command by name
grep -rl "title: CommandName" docs/commands/ docs/commands-legacy/

# Find a class method
grep -rl "\.methodName" docs/API/

# Find usage of a specific function
grep -rl "functionName" docs/ --include="*.md"

# Find a form event
ls docs/Events/on*.md

# Find a form object type
ls docs/FormObjects/*_overview.md

# Find a REST endpoint
ls docs/REST/\$*.md

# Find settings for a topic
grep -rl "keyword" docs/settings/

# Find a legacy command by theme
grep -rl "CommandName" docs/commands/theme/

Index Files

For structured navigation of large categories, read these generated indexes:

IndexContentFiles Indexed
api-index.mdAll API classes with key methods42
commands-index.mdModern commands + theme categories65 + 76
concepts-index.mdLanguage concept files29
orda-index.mdORDA documentation structure10
rest-index.mdREST API endpoints36
events-index.mdForm and system events61
form-objects-index.mdForm object types54
webserver-index.mdWeb server documentation14
legacy-commands-index.mdLegacy commands by theme1,211
all-categories-index.mdMaster navigation32 categories

Reference Files Guide

Curated Knowledge (hand-written, with code examples)

FileCoversPriority
language-syntax.mdAssignment, operators, control flow, methods, classes, strings, formulasHigh — read for any syntax question
data-types.mdAll types, conversions, null/undefined, collections, objects, pointersHigh — read for type errors
orda-modern.mdORDA architecture, entity classes, computed attributes, shared objects, signalsHigh — read for new feature development
query-patterns.mdQuery syntax, placeholders, null queries, linked collections, formulas, performanceHigh — read for any query work
error-handling.mdTry/Catch, ON ERR CALL, transactions, Throw, loggingMedium — read when handling errors
classic-patterns.mdArrays, process variables, pointers, sets, migration strategiesMedium — read for legacy code
forms-and-ui.mdForms, events, form objects, list boxes, subforms, form classesMedium — read for UI work
web-and-rest.mdWeb server, REST API, HTTP handlers, sessions, authenticationMedium — read for web/REST work
manual-insights.mdReal-world corrections from code reviews — overrides other sourcesAlways check for edge cases

Common Workflows

New Feature Development:

  1. orda-modern.md for architecture patterns
  2. query-patterns.md for database operations
  3. error-handling.md for robust error management
  4. Specific docs/API/ files for class method details

Legacy Code Maintenance:

  1. classic-patterns.md for understanding legacy code
  2. orda-modern.md for modernization options
  3. language-syntax.md for syntax questions

Debugging:

  1. Check Critical Syntax Rules above first
  2. language-syntax.md for syntax errors
  3. data-types.md for type errors
  4. query-patterns.md for query issues
  5. manual-insights.md for known gotchas

Web/REST Development:

  1. web-and-rest.md for server and REST patterns
  2. orda-modern.md for exposed functions
  3. rest-index.md for specific endpoint docs

External Resources

When the embedded docs don't cover your case:

平台分布

Codex

37.7%
按下载量换算55

Claude

27.65%
按下载量换算41

Cursor

16.57%
按下载量换算24

Gemini CLI

8.99%
按下载量换算13

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills