Loading...
Loading...
Check if the CLI functions newly merged into te-cli are reasonable. Scan from six dimensions: command registration, business domain ↔ skill pairing, skill document coverage, skill internal consistency, user document synchronization, and engineering robustness, to locate issues such as command loading failure, AI agent guessing parameters due to empty documents, and outdated user documents. Use it when merging new command domains/commands, adding or modifying skills, performing pre-release self-checks, or evaluating the completeness of CLI functions.
npx skill4agent add thinkingaiagenticengine/ae-cli cli-self-checksrc/commands/te-*skills/# Full scan (recommended for pre-release)
node self-check/scan.mjs
# Only check changed domains relative to a branch (recommended after merging/PR, focus on current changes)
node self-check/scan.mjs --since master
# Machine-readable, suitable for CI integration
node self-check/scan.mjs --json10The script is pure Node, zero new dependencies, read-only and does not modify the repository. Judgment and repair are done by you (agent) based on the rules below—the script is responsible for "discovering", and you are responsible for "confirming + fixing".
| Dimension | Name | What to Check | Consequences of Missing |
|---|---|---|---|
| D1 | Command Registration | Whether the new domain is registered in | The command does not load at all; |
| D2 | Domain ↔ Skill Pairing | Whether each business domain has a corresponding skill; tool commands should not have skills | The agent doesn't know how to use the new command |
| D3 | Skill Document Coverage | Whether commands ↔ | The agent lacks command documents and is forced to guess parameters |
| D4 | Skill Internal Consistency | Whether the CRITICAL rule "+cmd→cmd.md" matches the actual filename; whether links in SKILL.md are invalid | The agent reads empty documents according to the rules and guesses IDs/parameters randomly |
| D5 | Document Synchronization | Whether README (Chinese/English) covers all services; version number vs CHANGELOG | Users follow the README and think the new function doesn't exist |
| D6 | Engineering Robustness | Whether each domain has a verify script; whether it is connected to | No automatic interception for regression; type errors are only exposed during build |
import('./commands/<dir>/index.js')loadCommands()registerXxxCommand()src/index.tsregisterMcpMappings({ '<service>': { componentName, mappingPath } })index.tste-community/index.tsengageengage_configsyncmodelauthconfigapiDOMAIN_TO_SKILLscan.mjsTOOL_DIRScreate-team.md+create.mdreferences/ae-dataopsae-kbGROUPED_DOC_SKILLS+listlist-teams.mdlist.mdlist.mdreferences/xxx.mdREADME.mdREADME.zh.mdscripts/verify-te-<domain>.mjsverify-te-analysis-tools.mjsverify:<domain>package.json"typecheck": "tsc --noEmit"scan.mjsDOMAIN_TO_SKILLCOMMAND_SKILL_OVERRIDESTOOL_DIRSGROUPED_DOC_SKILLS