Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Analiza

slo-sec-libs

/slo-sec-libs

Czyta deklaracje CycloneDX z bibliotek bezpieczeństwa i dopasowuje kontrole runbooka do dostępnych funkcji.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/read-declarations.py

Co robi i kiedy

Czyta deklaracje CycloneDX z bibliotek bezpieczeństwa i dopasowuje kontrole runbooka do dostępnych funkcji.

Oryginalny opis (EN)

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.

Jak działa

  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
Sekcje z nagłówków SKILL.md, w oryginale · 126 linii, 1 156 słów
Podgląd SKILL.md
---
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.
Pliki w paczce (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

Wersje

W bazie nie ma innych skilli o nazwie slo-sec-libs.

Migawka bazy z 13.11.2026 · wersja paczki 06aa0a7549f0 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90slo-cloud-threat-model
    Tworzy model zagrożeń dla chmury AWS, GitHuba lub Cloudflare na podstawie wybranego scenariusza, z odwołaniami do identyfikatorów kontroli.
  • 100software-bill-of-materials-sbom-spdx-cyclonedx
    Generuje i audytuje listę składników oprogramowania (SBOM) w standardach SPDX i CycloneDX.
  • 90slo-implementation
    Planuje, wdraża lub przegląda implementację SLO w istniejącym kodzie z kontrolami zgodności, bezpieczeństwa i weryfikacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.