errorhandlingbase

作为错误处理模式的基础技能,用于为特定编程语言的错误处理实现提供通用框架和扩展点。

仓库最近推送
GitHub Stars
217
Forks
40
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "errorhandlingbase":https://skillpi.com/zh/skills/deepskill-551bacd1a7943548865b9f26746c18e67c99dd5629c984c110db03cea2065861。安装前核对上游来源和版本:https://github.com/Dicklesworthstone/meta_skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

作为错误处理模式的基础技能,用于为特定编程语言的错误处理实现提供通用框架和扩展点。

0 下载

介绍来源: third_party · Dicklesworthstone · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: Error Handling Base
description: Foundation for error handling patterns. This is a base skill designed to be extended by language-specific error handling skills.
id: error-handling-base
tags:
- error-handling
- foundation
- example

Error Handling Base

Core insight: Good error handling is about communication - to users, developers, and monitoring systems.

Rules

  • Always handle errors explicitly - never ignore them
  • Use meaningful error messages that describe what went wrong
  • Include context in error messages (what was being attempted)
  • Log errors at appropriate levels (error vs warning vs info)
  • Distinguish between recoverable and unrecoverable errors

Pitfalls

  • Swallowing exceptions without logging
  • Using generic error messages like "An error occurred"
  • Exposing internal implementation details in user-facing errors
  • Catching broad exception types when specific ones are needed

Examples

// Bad: Generic error
throw new Error("Error");

// Good: Descriptive error with context
throw new Error(`Failed to parse config file '${filename}': ${parseError.message}`);

Checklist

  • [ ] All error paths are handled explicitly
  • [ ] Error messages are actionable and descriptive
  • [ ] Sensitive information is not leaked in errors
  • [ ] Errors are logged before being re-thrown or converted

版本历史

  1. v0.4.1 GitHub ↗
    原版更新说明

    ## [v0.4.1] -- 2026-11-23 ### Security, integrity and overlay diagnostics - **Loud malformed overlay diagnostics and repository overlay hardening.** `load_overlays_for_skill_with_warnings` and `apply_overlays_from_dir_with_warnings` now surface explicit warnings for malformed JSON/TOML/YAML overlays, unreadable overlay files, and symlink escapes instead of silently dropping them, reporting warnings in both `ms load` (robot JSON `warnings` and human output/stderr) and `ms show`. Overlays are scanned for prompt injection patterns before application, and repository-scoped `.ms/overlays` refuse wildcard (`skill_id: "*"`) and `RemoveBlock` modifications by default unless explicitly opted in via `MS_ALLOW_PROJECT_OVERLAYS=1`. - **Fail-closed `ms bundle verify` for unsigned bundles and corrupt cached blobs.** `ms bundle verify` now refuses unsigned bundles by default instead of reporting `valid: true`, requires a manifest checksum, fails closed on corrupt or unreadable cached blobs in the local blob store, and provides an explicit `--allow-unsigned` flag (mutually exclusive with `--key`) for checksum-and-blob-only integrity checks. ### Search performance - **Eliminate full-table `skill_usage` scans during `ms search`.** Replaced `build_search_context`'s three-pass full-table `get_skill_usage_stats()` queries with an O(1) primary-key tail query (`Database::get_recent_skill_ids`) and avoided building search context in BM25 and semantic search unless `--explain` is requested. On a 500-skill database with 20,000 `skill_usage` rows and 500 `skill_slices` rows, `ms search` drops from 104.0 ms (10.77 MB read) to 31.8 ms (86 KB read — 3.27x faster, 125x less DB I/O), with `Database::open_readonly` keeping `PRAGMA foreign_keys` off while writer connections preserve `PRAGMA foreign_keys = ON`. ### CLI, CASS mining, indexing and RU sync fixes - **CASS mining and CLI hardening.** `ms antipatterns mine` now accepts both session file paths and bare session IDs (resolving IDs via CASS search); `ms meta update` and `ms antipatterns` construct `CassClient::from_context` so `CassConfig` settings and `SafetyGate` enforcement apply consistently; `ms meta update` surfaces `get_session` and extraction failures in `session_errors` (marking status `partial`); `ms build` records and warns on anti-pattern mining errors instead of swallowing them; and ACIP taint scanning in `src/cass/mining.rs` now recursively scans `tool_calls` arguments and names so hostile command lines are filtered on both pattern and anti-pattern paths. - **Local frontmatter validation and scoped RU sync.** `ms index` now refuses malformed or unterminated YAML frontmatter on local paths as well as `--from-ru`. `SyncEngine::index_ru_repo_paths` writes RU skills directly at the canonical `Base` layer (eliminating `Project` → `Base` rewrites), and `ms sync` only triggers `auto_reindex` when an RU remote had changes, scoped exclusively to the changed RU repositories. - **Robot mode environment parity and test strengthening.** Added `ROBOT_MODE` environment variable fallback alongside `MS_ROBOT` and strengthened `test_robot_mode_env_var`, `test_cass_integration_workflow`, and `test_knowledge_query_workflow` with deterministic stand-in binaries and real behavioral assertions. ### Verification All release archives, standalone binaries, and `SHA256SUMS` manifests are signed with the repository minisign public key (`minisign.pub`, key ID `1BBD79B28BF718D0`). Verify with: ```bash curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/meta_skill/main/scripts/install.sh | bash -s -- --easy-mode ``` Or verify signed checksums directly: ```bash minisign -Vm SHA256SUMS -x SHA256SUMS.minisig -p minisign.pub sha256sum -c SHA256SUMS --ignore-missing ``` **Full Changelog**: https://github.com/Dicklesworthstone/meta_skill/compare/v0.4.0...v0.4.1

  2. v0.4.0 GitHub ↗
    原版更新说明

    ## [v0.4.0] -- 2026-11-21 ### Indexing, storage and read-only queries - **Batched 2PC indexing and zero-write unchanged runs (#249).** `ms index` now writes changed skills through a single 2PC transaction journal and a single Git archive commit instead of creating one transaction journal and commit per skill, reducing transaction `fsync` calls from `O(N)` to `O(1)`. Advisory lock file creation no longer calls `sync_all`, Tantivy uses a single-threaded index writer to avoid multi-segment fsync amplification, and unchanged index runs skip database writes, graph rewrites, Tantivy commits, and WAL checkpoints. - **Read-only store opens and `ms load --no-track` (#249).** `ms list`, `ms show`, and `ms search` now open both SQLite (`Database::open_readonly`) and Tantivy in read-only mode with zero database sync calls. `ms load` adds `--no-track` to skip usage recording and keep the store read-only. - **Reconcile superseded skill IDs on H1 retitle (#244).** When a markdown skill file's H1 heading changes, `ms index` (both incremental and `--force`) now deprecates superseded skill IDs previously indexed from that origin path and un-deprecates restored or force-reindexed IDs. `ms show` excludes deprecated skills when active skills match a frontmatter `name` lookup. ### Reliability, safety and CLI fixes - **Beads sync defaults to `--flush-only`.** `BeadsClient::sync()` now invokes `br sync --flush-only` instead of bare `br sync`, and exposes `SyncMode` / `sync_with_mode` for explicit sync modes. - **Secret redaction false-positive fixes.** `SecretScanner` no longer redacts clean prose references to `"bearer token"` or long filesystem paths when mining antipatterns. - **Tool-version probing and `dcg` reporting.** Added `probe_tool_version` / `ToolVersionProbe` so `ms doctor` clearly reports skipped version checks when `dcg` is unavailable instead of reporting a blocked destructive operation, and `ms safety status` clearly states when `dcg` is not installed and no safety packs are active. - **Bundle, doctor, indexing and testing hardening.** `ms bundle install --from-dir` now indexes installed skills into SQLite, the Git archive, and Tantivy; `ms bundle remove`, `ms bundle create --sign`, `ms doctor`, and `ms index` (dependency graph save) now propagate storage and I/O errors instead of dropping them; `ms bundle verify` fails on corrupt cached blobs; `ms index --watch` no longer exits after a single poll in non-human output modes; malformed overlays and JFP spec fallbacks emit explicit warnings; and `StepExecutor` fails closed on missing skills or exceeded token budgets. ### Performance and dependencies - **Release profile switched to `opt-level = 3`.** Release binaries now compile with `opt-level = 3` (previously `"z"`). On a 50-skill benchmark (`hash` embeddings), `ms index` improved 4.37x (14.3s -> 3.27s), unchanged `ms index` improved 2.59x (254.5ms -> 98.2ms), `ms search` improved 12.4x (230.1ms -> 18.5ms), and `ms list` improved 26.8x (372.5ms -> 13.9ms). - **Dependency alignment and security updates (#250).** Aligned `fsqlite`, `fsqlite-types`, and `fsqlite-error` to `0.5.1`; refreshed 145 crates including `libz-sys 1.1.33` (fixing `RUSTSEC-2026-0544`), `async-executor 1.14.1` (removing a yanked version), `rusqlite 0.43.0`, `zip 9.8.1`, `toml 1.2.2`, `clap 4.6.9`, `regex 1.13.2`, `rustls-webpki 0.103.17`, and `openssl-sys 0.9.118`; and cleaned up `deny.toml` (removing the stale `RUSTSEC-2025-0140` ignore entry). ### Verification All release archives, standalone binaries, and `SHA256SUMS` manifests are signed with the repository minisign public key (`minisign.pub`, key ID `1BBD79B28BF718D0`). Verify with: ```bash curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/meta_skill/main/scripts/install.sh | bash -s -- --easy-mode ``` Or verify signed checksums directly: ```bash minisign -Vm SHA256SUMS -x SHA256SUMS.minisig -p minisign.pub sha256sum -c SHA256SUMS --ignore-missing ``` **Full Changelog**: https://github.com/Dicklesworthstone/meta_skill/compare/v0.3.0...v0.4.0

  3. v0.3.0 GitHub ↗
    原版更新说明

    ## [v0.3.0] -- 2026-11-01 ### Security, install and deletion behaviour This release is the first in which `ms` deletes through sync, writes agent config files, opens a TCP port and runs tools named by a skill. Read this section before upgrading. - **`ms sync` now deletes.** A skill deleted on one side after a sync is deleted on the other, on archive, git and JFP cloud remotes. v0.2.3 never deleted in a sync. Two limits apply. A sync that could not read every skill deletes nothing, lists what it held back and exits non-zero, even with `--force`. A sync that would delete skills because one side is empty is refused, with the count, unless you pass `--force`. Deletions sent by a JFP server are applied as sent. - **What `ms sync` and `ms index --from-ru` take from a repository is now checked.** With a ru remote, `ru.auto_index` is on by default, and each pulled repository's `SKILL.md` is imported during sync. In v0.2.3 that import replaced any skill with the same id, including one you wrote. Now a file replaces a skill only if that skill came from that file, or with `--force`. A file that leaves its repository, can't be read or has frontmatter that won't parse is left out and reported, and the rest are still imported. A likely secret is reported, and the file is still imported, as in `ms index`. After a sync that pulled or cloned on any remote, `ms` also reindexes every ru repository, not only the ones that changed, under these same rules. Set `auto_index = false` to stop the import and that reindex. - **`ms setup` now edits agent config files.** It adds an `ms` entry to `mcpServers` in the config of each detected agent, for example `~/.claude/config.json`, `~/.codex/config.json`, `~/.gemini/config.json` and `~/.cursor/settings.json`. v0.2.3 skipped this step. The other settings in the file stay, and no backup is written. If a file can't be read, isn't valid JSON (comments or a trailing comma, say) or isn't an object, `ms setup` names the file and the reason, changes nothing and exits non-zero. Use `--dry-run` to see what it would change. - **`ms mcp serve --tcp-port <port>` now listens.** v0.2.3 accepted the flag and ignored it. The listener binds 127.0.0.1 and has no authentication, so any local process can call its tools. The MCP `config` tool is read-only: it offers `get` and `list`, and `set` is refused. Use `ms config set`. - **Evaluating a skill can run a program.** `::: if :::` blocks, `requires` and `context.tools` are now evaluated by `ms load`, MCP load and `ms requirements`, and a version check runs `<tool> --version`. A tool name must be plain: it starts with a letter or digit and holds only letters, digits and `._+-`. It is looked up only in absolute `PATH` entries, and `--version` runs only if the safety gate allows it. Without dcg nothing runs: a version condition reads as unmet, so its block stays out, and a requirement is reported as found with no version. - **`ms load` applies overlays** from `<ms_root>/overlays`. An overlay can replace, remove or append blocks in one skill or, with `skill_id: "*"`, in all of them. Overlays are not scanned, and a malformed one is skipped with no message. `ms_root` is the nearest `.ms` directory, so a repository you work in can ship overlays. - **A repository's `.ms/config.toml` can no longer choose what runs or what guards it.** This closes a hole that was also in v0.2.3, where a repository you worked in could name the safety binary, turn approval off or point `ms` at its own `ru`, `cass` or `cm`. Inside a project's config, `ms` now ignores `safety`, `security` and `update`, `ru.ru_path`, `cass.cass_path`, `cm.cm_path`, `cm.default_flags`, `agent_mail.endpoint`, `search.api_endpoint` and `search.api_key_env`, and warns once. Set them in your own config, or through `MS_CONFIG`, `--config` or the environment. `ms config set` and `ms config add` refuse them in a project's config, and `ms init` no longer writes them there. - **Signed bundles are verified instead of refused.** `ms bundle install` checks signatures against the Ed25519 keys in `<ms_root>/trusted_keys`; `--no-verify` installs an unsigned or untrusted bundle. `ms bundle verify` is new. It reports `valid: true` for an unsigned bundle, with `signed: false` beside it, so read both. `ms bundle create --sign` adds its own key to `trusted_keys`. Building a bundle refuses a symlink that leaves its root and warns about likely secrets. - **`ms index`** refuses a skill file that is a symlink out of its directory, and warns about likely secrets. It does not stop for a secret. - **`ms security scan`** takes a skill id, file or text as its argument. With no input it scans every indexed skill, and it fails if any of them can't be read. With nothing to scan it fails, as v0.2.3 did. Bare text must be two or more words; a single word that names no skill or file is refused, so use `--input` to scan it as text. A persisted scan with no `--session-id` now gets a `scan-<uuid>` id, where v0.2.3 refused it. - **ACIP classification is stricter.** It matches more injection phrasing and detects base64 and HTML-comment smuggling, so content that passed before can be quarantined now. - **`ms test` runs a `run:` step only if the safety gate allows it.** With no dcg installed the step doesn't run, and the refusal says why. - **`ms test` exits non-zero when a test fails or times out,** in human and robot output. v0.2.3 and earlier exited 0 and left the failures in the report. The robot document doesn't change, and `status` is still `partial`. A script that ignored the report and relied on exit 0 will now see the failure. - **`ms meta update`** is new. It mines CASS sessions and usage into the `ms` skill. Each mined line is redacted, and refused if a detector still fires, and a pattern with any taint label is refused whole. The output reports `lines_refused` and `cass_error`, with status `partial` when either applies. **`ms build`** writes a synthesized `SKILL.md` with an anti-pattern section taken from session text. That text can't close its code block or start a heading, and redaction stays on unless you pass `--no-redact`. Messages the injection scan flags are left out of that section, as they are from patterns, and out of `ms antipatterns mine`. In v0.2.3 that command mined them. `--no-injection-filter` brings back sensitive text, never injection. A session is now redacted before mining as well as in the finished file, so a cut can't leave part of a token in `SKILL.md`, `patterns.json` or `evidence.json`. `ms antipatterns mine` redacts token-shaped secrets, which v0.2.3 printed, and so does `ms cross-project`, which printed session text. Redaction catches only the shapes `redact_secrets` knows. `mine --save` starts writing in this release and refuses a store it can't read. An excerpt in the guided build is filtered and redacted the same way. Sessions marked exemplary skip the quality threshold. Review what these commands wrote before you share a skill. - `ms config reset` restores defaults, safety keys included. `ms safety check` now logs each check, and `ms safety packs` lists packs. `ms doctor` checks bundle blob integrity. Backup id and path checks moved to the shared path policy, as strict as before, with different error text. ### Other changes - API embeddings are now tied to the model and endpoint that produced them ([#218](https://github.com/Dicklesworthstone/meta_skill/issues/218)). Every API configuration used to store its vectors as `api`, so moving `api_model` or `api_endpoint` to another space of the same width kept the old vectors and ranked new queries against them with no error. Each configuration now has its own identity. Rotating a key in the URL re-embeds nothing, because credentials, query and fragment stay out of the identity. - `embedding_backend = "local"` now works. It hashes character 3-grams and 4-grams plus word unigrams and bigrams, where it used to return `NotImplemented`. An `.onnx` path still returns `NotImplemented`, because the ONNX runtime is not linked. - `ms index` reuses an embedding when its content hash, backend and dimensions are already stored, and records each skill's `scripts/`, `references/` and `tests/` files. `ms index --force` clears the resolution cache first. - Hybrid search keeps the configured BM25 and semantic weights when `k` is applied. They used to fall back to the defaults. - `ms suggest` now gives its bandit the real time of day, project size and tech stack, applies the suggestion budget and leaves skills in cooldown out of the active list. `ms load --auto` scores with the git branch, recent commit subjects, environment signals and past use, and a threshold at or below zero keeps every skill. `ms outcome` reports contextual and aggregated rewards. - `ms build` writes `evidence.json` beside each skill, and the commit path records it in `skill_evidence`. `ms validate` runs the 19-rule engine, and `--fix` applies auto-fixes and revalidates. `--lint` makes lint errors count against a clean result and can raise `no-secrets` and `no-prompt-injection` to errors. - Bundle updates name their conflict strategy. `--force` backs up and replaces; without it, a conflicting update stops before any write, and a failed write restores from backups. `ms bundle create` reads `bundle.yaml`. - Commands that were placeholders or ignored their flags now work: `ms requirements <skill>` and `--all`, `ms antipatterns show`, `list`, `link` and `mine --save`, `ms dedup merge` (it merges content into the primary), and `ms index --watch` in human output. New: `ms coverage`, `ms mark`, `ms cm add`, `ms bundle search` and the `ms inbox` `--register` and `--send-to` flags. - `ms load` packs with a CELF greedy pass and follows mandatory `requires` transitively, so the same budget can select different blocks. `total_tokens` is now a sum. `ms search` gains `--explain`, a query cache and a context boost. - `ms import` honours format hints, which can change how any file is parsed. Older specs migrate through the 0.1 to 1.0 path. Frontmatter `extends`, `includes` and `replace_*` are compiled. Lint auto-fix writes a description where it used to write a TODO. - `ms fmt` fails when a skill doesn't survive a roundtrip. `ms validate` counts a roundtrip failure against `clean`. `ms cm status` exits 0 with `available: false` when cm is missing. - `--robot` errors are JSON on stdout for every non-human format, and JSON output follows the global format. `MS_ROBOT`, `MS_ROBOT_FORMAT`, `MS_OUTPUT_FORMAT` and `MS_CONFIG` are read from the environment. Some MCP error responses change code from -32700 to -32603. - Bandit and cooldown state moved from the user data directory to `ms_root`, which is the same place unless you run inside a project with its own `.ms`. There, nothing is migrated and that history starts again. Fsqlite warnings are hidden below `-vv`. - Deleting a skill now runs in one transaction, so a failure can no longer leave a skill without its evidence or evidence without its skill. If its tombstone can't be written, the delete stops and the skill stays. A pack file that can't be written fails that skill's index with the reason, and `ms index --force` writes it once the path is clear. - `ms index` checkpoints the database's write-ahead log when it finishes, so later commands don't replay that log each time they open the database. `ms show` reports `indexed_slices_count`, counted from the skill's pack file. - `ms bundle install --layer` refuses a layer it doesn't know, before anything is written. It used to install to the project layer. - Embeddings are computed with SIMD, so float rounding can shift a search score slightly. - `ms list` filters before it paginates, so `--limit` and `--offset` apply to the filtered list, and it reads at most 10,000 skills. - `ms --robot sync` prints one JSON document. After a sync that changed anything, it used to print the reindex result first, so a script reading stdout saw two. That result is now at `auto_reindex.index`, and `auto_reindex.success` is false if the reindex refused a file. `ms sync --force` also applies to that reindex. - `ms sync` human output gains a Summary line, and says the reindex finished where it said the reindex succeeded. `ms prune` with no tracker now says "beads (br/bd) not available (install beads_rust or configure PATH)". - `ms update` retries when the kernel reports the new binary as busy, and treats a bad zip entry name as a validation error. A credential counts as authenticated only while it is unexpired. - The installer removes its temp directory, which used to keep a copy of the release archive after every install, and reads the latest tag from minified GitHub API JSON. - Dependencies: tantivy 0.27, lru 0.19, rusqlite 0.41, zip 9, parking_lot 0.13, vergen-gix 10, and a compatible refresh of the lock. `cargo audit` reports no vulnerabilities and six unmaintained-crate notices. The FrankenSQLite engine stays at 0.4.7, because no newer published version has been cleared for this release; its `fsqlite-types` and `fsqlite-error` crates, which ms also uses directly, move to 0.4.9 and 0.4.12. - Upgrade note: run `ms index` once if you use the API backend. Rows written before this release say only `api`, which can't be proved current, so the next index recomputes them. Until then, semantic search for that configuration has no vectors to rank rather than the wrong ones. ### Known limitations - The injection scan reads message text and tool results, not tool call arguments. - Redaction can rewrite ordinary text: "bearer token" becomes `bearer [REDACTED]`, and a long path can be replaced whole. `ms build` already did this to finished files; `ms antipatterns mine` and `ms cross-project` text now get it too. - `ms index --watch` in a non-human format polls once and exits 0. - A `load_skill` test step passes on a stand-in skill when the real one is missing or can't be read. - A bundle built with `--from-dir` reports installed but doesn't reach the database or search. `ms bundle remove` can list a skill as removed after its delete failed. - `ms doctor` prints OK with 0 verified if it can't read the blob directories. `ms safety packs` prints "(default packs enabled)" with no dcg installed. - A JFP pull with an invalid `spec` rebuilds the skill from its markdown, with no message. - An error saving the dependency graph during `ms index` is dropped. - `BeadsClient::sync()`, part of the library API, fails with br 0.2.18 and later. It runs a bare `br sync`, which br now rejects without a mode. The `ms` CLI doesn't call it. - Built the same way as 0.2.3 (opt-level "z"), `ms index` takes about 12% longer (302 s → 338 s on a 2,000-skill corpus). The release binaries, built at opt-level 3, index about 10% faster than 0.2.3's (see Performance). The index is about 18% larger on disk (244 → 288 MB). - Qualification: the full test suite ran on this release's source before the search fix (the `ms index` checkpoint and the pack-file slice count): 3,652 passed (3,598 ran, 54 returned early because a tool they need, `br`, `bv` or a live cass index, wasn't installed), 3 failed, 35 ignored. The same 3 fail the same way on v0.2.3, and none fails only on this release. Two assume `/nonexistent` doesn't exist and one assumes a mode-000 directory can't be read, and neither held where the suite ran. Run again with a pinned `br`, 37 of the 39 `br` tests ran and passed, and 2 passed only after their sync call failed (see the `sync()` limitation above). The 9 tests that need a live cass index and the 6 that need `bv` were not run. After the search fix, the CLI, end-to-end, integration and snapshot test targets ran again with the same counts as the full run (621 passed, 31 of them returning early at a tool check; the mode-000 test failed again), and so did the unit tests of the changed modules (165 passed (165 ran, 0 returned early at a tool check), 0 failed, 0 ignored; expected = 1 for the 2PC test). One end-to-end test was corrected after the full run, with no source change, and its file passes in full. - ms's cass invocation and its `bv` code are unchanged since 0.2.3. The new filtering and mining code is covered by fixture and unit tests, but the cass-backed paths of `ms cross-project` ran in no test. A manual smoke of `ms cross-project` against a stand-in cass ran 16 commands, all exiting 0 with no panic. The 9 command shapes of the end-to-end tests return empty results, because the stand-in's session has no project; with `--include-unknown` the session is exported, mined and aggregated. The one graph change, a separator line in `ms graph` table output, prints only on a rich terminal or with `MS_FORCE_RICH`, so no gate test reaches it. ### Performance Measured against v0.2.3 on one Linux host, both built with the repo's release profile (opt-level "z"; medians; the CLI rows use a 2,000-skill test corpus). - Skill similarity is 83% faster, and vector search 59% to 66% faster. - `ms search` takes about as long as in 0.2.3: 204 ms per call against 197 ms (+4%), and 198 ms on an index that 0.2.3 built. - `ms index` takes 12% longer (302 s → 338 s for the corpus), and the index is 18% larger on disk (244 → 288 MB). - A skill block gated on a `tool:` condition costs about 55 ms per `ms load`. Without one, `ms load` is as fast as in 0.2.3. - Built that way, the `ms` binary is 5.8% larger. - A few micro-benchmarks on unchanged code moved −8% to +10%; probably code layout, not verified. The release binaries below are built at opt-level 3 instead; v0.2.3's were built with the profile's "z". That makes the binaries 63% to 101% larger than v0.2.3's, and the archives 59% to 74% larger. Measured release binary against release binary (Linux x86_64), this release is faster: | | v0.2.3 | v0.3.0 | change | |---|---|---|---| | `ms search`, per call (60 queries) | 200 ms | 170 ms | −15% | | `ms load --full`, per call | 170 ms | 155 ms | −9% | | `ms index`, 2,000-skill corpus | 362–368 s | 327–328 s | −10% | Medians of 5 interleaved rounds for search and load, and 2 interleaved runs per binary for `ms index`; the two binaries' ranges don't overlap. One otherwise idle x86_64 host with 8 hardware threads and no AVX2 (Xeon E3-1245 V2), load average about 1, files on disk (not tmpfs), both binaries at the same scheduling priority (nice −4, set by the host's ananicy-cpp). ### Assets and verification Binaries and archives for Linux (x86_64, aarch64), macOS (Apple silicon, Intel) and Windows (x86_64). Each binary and archive has a `.sha256` file and a minisign signature (`.minisig`). `SHA256SUMS` (also published as `SHA256SUMS.txt`) lists all of them and is signed too. Each archive now holds README.md, LICENSE and CHANGELOG.md next to the `ms` binary (`ms.exe` on Windows). `install.sh` and `ms self-update` pick the binary by name, so nothing changes for them. Build provenance: built with dsr 0bb4d53 (pre-attestation build path; the attesting dsr refuses this repo's tracked `.cargo/config.toml`: `[env] CARGO_INCREMENTAL` and an x86_64 `-C linker` rustflag, both present since v0.2.3). The linux/amd64 binary is linked by zig cc at the glibc 2.28 floor, with `-Z threads=4` as its only rustflag; the repo's `-C linker=cc` and `-C link-arg=-B/usr/bin` are overridden for this build. Every other target builds with the same `-Z threads=4`. What was run before release: - Linux x86_64 and aarch64: `ms --version` prints `ms 0.3.0`; aarch64 ran under qemu. Both need at most GLIBC 2.28. - Linux x86_64 runs on pre-AVX2 x86_64 CPUs (tested: Xeon E3-1245 V2, which ran the timings in Performance). - macOS Apple silicon: run natively. macOS Intel: checked statically only, not executed. - Windows x86_64: the PE header was checked only; the binary was not executed. To check a download and the installed binary's version and help output, see [Published release consumer checks](https://github.com/Dicklesworthstone/meta_skill/blob/v0.3.0/docs/published-release-checks.md).

  4. v0.2.3 GitHub ↗
    原版更新说明

    Release 0.2.3 <!-- dsr-create-nonce:400ec8f08bfe84d29ecd8848e47cf9587699e81fbac112f6dba35c33d9630ffc -->

  5. v0.2.2 GitHub ↗
    原版更新说明

    ## v0.2.2 ### cass integration: sessions no longer score 0% on modern cass exports (#171) cass ≥ 0.6.2x exports raw Claude Code JSONL; `ms build` scored every such session 0% and extracted 0 patterns. `get_session` now normalizes both the raw and legacy shapes per-record, and duplicate search hits no longer double-weight sessions. ### Indexing: symlinked skills roots are indexed (#173) `ms index` silently skipped symlinked skill directories. Discovery now follows symlinks by default with canonical-path dedup, cycle safety, and a warning on dangling links. ### Chores Doctor snapshot records the db/archive skill-id agreement check; deps: clap_complete 4.6.9, wide 1.6.1, rich_rust 0.2.3, anyhow 1.0.104. Assets follow the v0.2.1 conventions (raw executables + tar.gz, per-file `.sha256` sidecars, `SHA256SUMS.txt`; legacy alias names included for older updaters). Built and gated locally (full suite green at 2a4bc62: 2380 lib tests + all integration suites).

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 提供错误处理的基础模式和最佳实践指导
  • 涵盖Rules、Pitfalls、Examples、Checklist完整结构
  • 适用于多种编程语言的通用错误处理原则
触发精准90/100

亮点

  • 触发词精准完整,明确说明是错误处理模式的基础
  • 边界清晰,指明由特定语言错误处理技能扩展
结构规范90/100

亮点

  • Phase/步骤清晰,包含Rules、Pitfalls、Examples、Checklist
  • frontmatter完整,单文件长度适中
  • 文档结构良好,易于理解执行
执行可靠85/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层frontmatter中description为空,但skill_body内部有实质描述内容

    改进建议:建议将description内容移至顶层frontmatter中,保持文档结构一致性

亮点

  • 内容本身可靠,涵盖主要异常处理原则
  • 提供具体的错误处理示例和检查清单
证据可验 (前四项均值)85/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。