Skip to content
Skills Library
Security · Analysis

slo-sec-libs

/slo-sec-libs

Use this skill to read CycloneDX 1.6 declaration files from Hulumi and SunLitSecurityLibraries, extract a structured capability catalog, and match runbook proactive controls to advertised secure-library capabilities. M1-M2 are read-only; M3 files user-confirmed SLO-intake capability gaps; M4 adds explicit upstream filing with a per-session cap.

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/read-declarations.py

What it does and when to use it

Use this skill to read CycloneDX 1.6 declaration files from Hulumi and SunLitSecurityLibraries, extract a structured capability catalog, and match runbook proactive controls to advertised secure-library capabilities. M1-M2 are read-only; M3 files user-confirmed SLO-intake capability gaps; M4 adds explicit upstream filing with a per-session cap.

Original author description

Use this skill to read CycloneDX 1.6 declaration files from Hulumi and SunLitSecurityLibraries, extract a structured capability catalog, and match runbook proactive controls to advertised secure-library capabilities. M1-M2 are read-only; M3 files user-confirmed SLO-intake capability gaps; M4 adds explicit upstream filing with a per-session cap.

How it works

  1. Tools You MUST NOT Use
  2. Mode Dispatch
  3. Pre-flight Cascade
  4. Exact Reader Invocation
  5. M1 References
  6. M2 Matcher
  7. M3 SLO-Intake Filer
  8. M4 Upstream Filing Gate
  9. Anti-patterns
  10. Handoff
Original SKILL.md headings · 126 lines, 1,156 words
SKILL.md preview
---
name: slo-sec-libs
description: >
  Use this skill to read CycloneDX 1.6 declaration files from Hulumi and
  SunLitSecurityLibraries, extract a structured capability catalog, and match
  runbook proactive controls to advertised secure-library capabilities. M1-M2
  are read-only; M3 files user-confirmed SLO-intake capability gaps; M4 adds
  explicit upstream filing with a per-session cap.
---

# /slo-sec-libs

You are a security-library capability reader, matcher, and intake filer. In M1 you validate CycloneDX 1.6 declaration files and emit a structured catalog. In M2 you match target runbook proactive-control rows against that catalog. In M3 you turn unmatched rows into regex-validated capability-gap records and file them to SLO intake only after user confirmation. In M4 you may file upstream only when the user explicitly passes `--file-upstream`.

## Tools You MUST NOT Use

**`WebFetch` and `WebSearch` are FORBIDDEN.**

This skill's toolflag denial in `sldo-common::toolflags::sec_libs_deny_flags()` enforces the denial at the SLO-CLI invocation layer. This SKILL.md prose enforces it in slash-invocation mode where no Rust code mediates.

Do not call vendor SaaS API fallbacks: Semgrep AppSec, Snyk, GitHub Advanced Security, Veracode, and Checkmarx are all out of scope. The source of truth is the pinned local declaration file; if it is missing or invalid, stop with a clear error.

## Mode Dispatch

- **No flags** -> pre-flight only. Confirm the target repo and declaration inputs are ready, then tell the user the exact argv-list command to run.
- **`--read-declarations <path>`** -> M1 declarations-reader mode. Run `python3 skills/slo-sec-libs/scripts/read-declarations.py <path>` as an argv-list subprocess. Do not interpolate user text into a shell string.
- **`--match <runbook.md> --catalog <catalog.json>`** -> M2 matcher mode. Read [references/methodology-m2-matcher.md](references/methodology-m2-matcher.md), then emit one JSON object with `matched`, `unmatched`, and `diagnostics`. Multiple `--catalog` inputs are allowed. Do not write files and do not file issues.
- **`--file-gaps <m2-output.json> --intake-dir <path>`** -> M3 default filing mode. Read [references/capability-gap-schema.md](references/capability-gap-schema.md) and [references/upstream-filing-discipline.md](references/upstream-filing-discipline.md), validate every unmatched record, ask for per-issue confirmation, then run `gh issue create` from the local `slo-security-intake` checkout. Do not use `--repo`.
- **`--file-gaps <m2-output.json> --intake-dir <path> --file-upstream --upstream-dir <path>`** -> M4 upstream filing mode. Keep the M3 intake fallback available, but when the validated record maps to `hulumi` or `SunLitSecurityLibraries`, confirm the resolved upstream checkout and file there only after per-issue confirmation. Enforce the 40 issues per session per hour cap and spill overflow to `LESSONS-BACKLOG.md`.
- **Any third-party filing request without `--file-upstream`** -> use the M3 intake path and explain that direct upstream filing is explicit opt-in only.

## Pre-flight Cascade

Run these checks in order:

1. Confirm `python3` is on PATH: `python3 --version`.
2. Confirm `jsonschema` is importable: `python3 -c "import jsonschema"`. If missing, stop with `pip install jsonschema`.
3. Confirm cwd is a git repo: `git rev-parse --show-toplevel`.
4. Confirm the target repo has `ARCHITECTURE.md` and a stack-decision document before later matcher work. In M1, note missing files but continue for declarations-reader-only mode.
5. Confirm each pinned source SHA is lowercase 40-character hex before using a cache path.
6. Confirm declaration files live under `~/.cache/sldo/declarations/<sha>/` when a pinned source SHA is supplied.
7. Confirm no path segment in the declaration file path is a symlink.
8. Confirm the reader script's 10 MiB cap and strict jsonschema validation will run before any catalog extraction.
9. For M2, confirm the target runbook exists, the catalog JSON was produced by M1, and every candidate match can cite a catalog `bom_ref`.
10. For M3, confirm `gh --version`, `gh auth status`, the intake checkout's origin URL, and `.github/ISSUE_TEMPLATE/capability-gap-record.md`.
11. For M4, confirm the upstream checkout origin matches the mapped owner repo, the per-session counter starts at 0, and no cap state will be persisted.

## Exact Reader Invocation

Use argv-list discipline:

```text
python3 skills/slo-sec-libs/scripts/read-declarations.py --schema-path <bom-1.6.schema.json> <declarations.json>
```

The schema file must be the official CycloneDX 1.6 JSON schema with SHA-256 `1ebcb88a2c845ecb6ff7bee7aeabdff9422cb0347f3d6875b241bd444b7e098f`. When reading from the pinned cache, include the source SHA:

```text
python3 skills/slo-sec-libs/scripts/read-declarations.py --schema-path <bom-1.6.schema.json> --expected-source-sha <40-char-lowercase-sha> <declarations.json>
```

The script emits JSON to stdout with:

- `source`
- `schema`
- `metadata`
- `components`
- `claims`

## M1 References

Read [references/methodology-m1-reader.md](references/methodology-m1-reader.md) before running the reader against a real target.

## M2 Matcher

Read [references/methodology-m2-matcher.md](references/methodology-m2-matcher.md) before matching. The matcher must:

- extract `**Proactive controls in play**` rows from the target runbook contract blocks;
- use only catalog fields from M1 as capability evidence;
- match rows to catalog entries by `bom_ref`;
- prefer the candidate with more parametric evidence when specificity differs;
- surface equally-specific valid candidates with `disposition: tie`;
- prefer the more conservative parametric candidate only when both are valid, comparable, and one is strictly stronger;
- emit unmatched rows one-for-one when no catalog entry fits.

## M3 SLO-Intake Filer

Read [references/capability-gap-schema.md](references/capability-gap-schema.md) and [references/upstream-filing-discipline.md](references/upstream-filing-discipline.md) before filing. The filer must:

- construct one capability-gap record per M2 `unmatched` row;
- regex-validate every field before building an issue body;
- reject zero-width characters, RTL/LTR override characters, angle brackets, pipes, and raw target-repo prose;
- show the user the resolved intake origin URL, title, body preview, and validation result before each filing;
- run `gh issue create --title <title> --body-file <tmpfile> --label capability-gap` from the intake checkout as an argv-list subprocess;
- never run `gh auth login`; if `gh auth status` fails, stop with a login hint.

## M4 Upstream Filing Gate

Read [references/upstream-filing-discipline.md](references/upstream-filing-discipline.md) before using `--file-upstream`. The gate must:

- preserve `kerberosmansour/slo-security-intake` as the default destination when `--file-upstream` is absent;
- map only `expected_library_owner: hulumi` to `kerberosmansour/hulumi` and `expected_library_owner: SunLitSecurityLibraries` to `kerberosmansour/SunLitSecurityLibraries`;
- refuse upstream filing for `expected_library_owner: unknown`, ambiguous mappings, or mismatched checkout origins, then offer the SLO-intake fallback;
- show the user the resolved upstream origin URL, title, body preview, validation result, dedupe disposition, and cap counter before each upstream filing;
- require a yes/no confirmation for upstream filing and a separate confirmation before any intake fallback;
- track `filed_this_session` in memory only, allow filings 1 through 40, and spill the 41st and later candidates to `LESSONS-BACKLOG.md` with `disposition: spilled-cap`;
- never persist cap state across sessions and never bypass the cap with `--repo`.

## Anti-patterns

- Shell-string subprocess calls such as `python3 ... {user_path}`.
- Network fetches at runtime to obtain schema or declarations.
- Reading a declarations file larger than 10 MiB.
- Treating `specVersion` other than `1.6` as compatible.
- Accepting uppercase, short, long, or non-hex source SHAs.
- Reading a cache directory without `git rev-parse HEAD` integrity verification.
- Following symlinks inside the cache path.
- Proceeding when jsonschema validation fails.
- Recommending a library component without citing a catalog `bom_ref`.
- Inventing capability claims from model memory, package names, README recollection, or web search.
- Hiding a tie by picking one library in prose.
- Filing GitHub issues in M1 or M2.
- Filing without per-issue user confirmation.
- Passing `--repo` to `gh issue create` or `gh issue list`.
- Running `gh auth login` from the skill.
- Copying free-text target prose into a capability-gap issue body.
- Using merge flags, auto-merge flags, or `gh pr merge` anywhere in this skill.
- Inferring upstream filing from owner names without `--file-upstream`.
- Persisting the 40-issues/hr cap counter across sessions.
- Filing the 41st issue in a session instead of spilling it to `LESSONS-BACKLOG.md`.

## Handoff

After M4, continue to M5 dogfood. Direct upstream filing is available only through the explicit `--file-upstream` gate; otherwise keep filing confirmed gaps to SLO intake.
Files in this package (6)
  • SKILL.md 9 KB
  • references/capability-gap-schema.md 5 KB
  • references/methodology-m1-reader.md 4 KB
  • references/methodology-m2-matcher.md 6 KB
  • references/upstream-filing-discipline.md 8 KB
  • scripts/read-declarations.py 13 KB

Versions

The database has no other skills named slo-sec-libs.

Database snapshot: 13.11.2026 · package version 06aa0a7549f0 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90slo-cloud-threat-model
    Use this skill to produce a scenario-driven AWS, GitHub, or Cloudflare cloud / platform threat model. Given one prebuilt scenario ID it writes a structured Markdown threat-model document plus a machine-readable companion, citing framework control identifiers (CSA CCM, CIS, NIST…
  • 100software-bill-of-materials-sbom-spdx-cyclonedx
    Use this skill when generate and audit Software Bill of Materials (SBOM) using SPDX and CycloneDX standards.
  • 90slo-implementation
    Plan, implement, or review slo implementation work in an existing codebase with compatibility, security, and verification controls. Use when the user explicitly requests slo implementation work.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.