FC context-compactor-cli
Condense a long agent session transcript into a compact handoff memo: decisions, tasks, risks, facts & links. Credential values are auto-redacted before output (best-effort - review memos before sharing; --strict drops whole suspect lines). EN/RU heuristics, zero dependencies. The CLI prints what it reads and where it writes. Use ONLY with the user's explicit consent: tell the user which transcript file will be read.
Condense a long agent session transcript into a compact handoff memo: decisions, tasks, risks, facts & links.
As a process C 56/100 · Has gaps — weak spots: result and completion, inputs and preconditions, failures and branches
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The files contain someone else's key or token. If it is live, your agent will call third-party services under a stranger's identity; if it was revoked, the skill's scripts simply fail. Such a key often arrives with the author's whole workspace, personal data included.
The key is visible to everyone who downloaded the skill and has likely been copied by catalog-scanning bots already. Revoke it now, check bills and access logs, then reissue.
How to improve
- Remove the critical guard findings (secrets, dangerous commands, hidden instructions): while they stand the skill is blocked and cannot grade above F.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 15
-
critical Secrets in code
secret-github-tokencompactor.py:299GitHub token (quoted — discussed, not commanded)"Ассистент: решили: gho_…789 для деплоя в CI.\n"
quoted -
critical Secrets in code
secret-github-tokencompactor.py:301GitHub token (quoted — discussed, not commanded)"Ассистент: решили: ghs_…XYZ для раннера.\n"
quoted -
critical Secrets in code
secret-aws-keycompactor.py:349AWS access key ID (quoted — discussed, not commanded)"AKIA": "AKIAABCDEFGHIJKLMNOP",
quoted -
high Secrets in code
secret-github-tokencompactor.py:335GitHub token (detector / deny-list definition)strict_gho = build_memo("decided: gho_…789 in vault\n",detector
Medium and low: 11
-
medium Secrets in code
secret-private-keycompactor.py:304Private key material (key header without key body; quoted — discussed, not commanded)"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Secrets in code
secret-private-keycompactor.py:361Private key material (key header without key body; quoted — discussed, not commanded)big_pem = "-----BEGIN PRIVATE KEY----- …\n"
header onlyquoted -
low Secrets in code
secret-high-entropy-tokencompactor.py:299High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"Ассистент: решили: gho_…789 для деплоя в CI.\n"
quoted -
low Secrets in code
secret-github-tokencompactor.py:300GitHub token (placeholder value)"Ассистент: решили: ghu_…789 для вебхуков.\n"
placeholder -
low Secrets in code
secret-high-entropy-tokencompactor.py:301High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"Ассистент: решили: ghs_…XYZ для раннера.\n"
quoted -
low Secrets in code
secret-high-entropy-tokencompactor.py:305High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"MIIE…ial\n"
quoted -
low Secrets in code
secret-high-entropy-tokencompactor.py:307High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"Ассистент: решили: BEGIN RSA PRIVATE KEY-…END RSA PRIVATE KEY----- для доступа по ssh.\n"
quoted -
low Secrets in code
secret-high-entropy-tokencompactor.py:324High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)ok_jwt = "eyJh…CJ9" not in memo
quoted -
low Secrets in code
secret-github-tokencompactor.py:341GitHub token (placeholder value)"ghp_": "ghp_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl",
placeholder -
low Secrets in code
secret-anthropic-keycompactor.py:347Anthropic API key (placeholder value)"sk-ant-": "sk-ant-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi",
placeholder -
low Secrets in code
secret-google-keycompactor.py:350Google API key (placeholder value)"AIza": "AIzaABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl",
placeholder
Files scanned: 5. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- note
frontmatter-keyunknown frontmatter key "tools"
Process rating: all ten parameters 56/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 30Running it twice. 4 mutating operations with no state check
- 50When it triggers. No condition that starts the skill
- 100Tools and files. Tools declared in frontmatter
- 100Steps. 10 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 664 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- high The skill tells the model to perform an irreversible action with no human approval
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +3Output format is not stated: the model decides each time
- +2Single-language instructions
- +4Description says when NOT to use the skill
- +3Description length 420: enough signal without eating the budget
- +4Structure: 8 headings
- +3Step-by-step instructions: 10 items
- +4Has examples (1 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 88.