fdl-recommend-discover
Skill1 starsChanged 8 months agoMITView on GitHub
Discover upstream open-source repos to extract from, when a low-scoring blueprint has no mapped candidate
In this repository17 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- fdl-auto-evolveSkill
- fdl-brainstormSkill
- fdl-buildSkill
- fdl-build-yamlSkill
- fdl-createSkill
- fdl-extract-code-featureSkill
- fdl-extract-codeSkill
- fdl-extract-designSkill
- fdl-extractSkill
- fdl-extract-webSkill
- fdl-generateSkill
- fdl-installSkill
- fdl-propagate-agiSkill
- fdl-pr-reviewSkill
- fdl-researchSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When a blueprint scores below the fitness threshold and data/extraction-candidates.yaml has no matching repo for its weakest dimension, …
- Very specific: line 28
Run node scripts/fitness-recommend.js --json and parse the recommendations array.
- Distinctive: line 30
If the target list is empty, print:
- Distinctive: line 57
Run 2–3 queries per target.
- Very specific: line 59
Must be github.com/org/repo URLs
- Distinctive: line 60
Must have a clear description from the search snippet
- Distinctive: line 61
Prefer repos with > 500 stars (if the snippet mentions stars) — but don't hard-block, since new projects might be relevant
- Very specific: line 94
If the feature matches a single domain, append under features.<feature-name>[]
- Very specific: line 95
If the search produced category-generic results, append under categories.<category>.<weak_dimension>[]
- Very specific: line 97
Never overwrite existing entries: Read the file, parse as YAML, append to the right array, write back with YAML.stringify.
- Distinctive: line 111
After a successful append, automatically run:
- Distinctive: line 145
Never overwrite existing YAML entries: Only append. If a repo URL is already in the file, skip it silently and note "already mapped" in the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
FDL Recommend Discover — Extend the extraction candidates map via WebSearch
When a blueprint scores below the fitness threshold and data/extraction-candidates.yaml has no matching repo for its weakest dimension, this skill uses WebSearch to find 2–3 reputable open-source projects and appends them to the map (with user approval) so npm run fitness:recommend can surface them in the README.
This is the Phase 2 extension to the recommender. The static seed map ships with the repo and handles the bottom-12 well; this skill is for when new low-scoring blueprints appear (e.g., after extraction adds new features) and the map needs to grow.
Usage
/fdl-recommend-discover # scan for all uncovered low-scoring features
/fdl-recommend-discover --uncovered # same as above
/fdl-recommend-discover <feature> # target a specific feature by name
/fdl-recommend-discover fine-grained-authorizationWorkflow
Step 1: Identify uncovered features
Run node scripts/fitness-recommend.js --json and parse the recommendations array. For each recommendation where candidates.length === 0 (no entry matched in the seed map), add the feature to a target list. If the user passed an explicit feature name, override the target list with just that one.
If the target list is empty, print:
✓ All low-scoring features already have candidates mapped.
Run `npm run fitness:recommend` to refresh the README if needed.…and stop.
Step 2: Search for each target
For each target feature, take the blueprint's feature, category, and weakest dimension and craft WebSearch queries that bias toward well-known OSS projects:
"<feature keywords> open source github <language>"
"best <category> library <feature>"
"<feature> reference implementation site:github.com"Example: for security/prompt-attack-augmentation (weakest: agi), search:
"LLM red team augmentation open source github"
"prompt attack library python site:github.com"
"jailbreak generation reference implementation"Run 2–3 queries per target. Collect candidate repos. Filter for:
- Must be
github.com/org/repoURLs - Must have a clear description from the search snippet
- Prefer repos with > 500 stars (if the snippet mentions stars) — but don't hard-block, since new projects might be relevant
- Skip archived/deprecated forks
- Reject anything that looks promotional or AI-generated (gibberish README, no clear scope)
Step 3: Present candidates to the user
For each target feature, print the proposed additions as a numbered list and ask for explicit approval via AskUserQuestion:
Proposed additions to data/extraction-candidates.yaml:
For `security/prompt-attack-augmentation` (weakest: agi)
1. https://github.com/leondz/garak
NVIDIA's LLM vulnerability scanner — probes and attack suites
2. https://github.com/protectai/llm-guard
Input/output guardrails with attack detection
3. https://github.com/Azure/PyRIT
Python Risk Identification Toolkit for generative AI
Append all 3? Or pick specific ones?Options to offer via AskUserQuestion:
- Append all — add every proposed repo to the YAML
- Pick specific — ask the user which indices to include
- Skip this feature — don't append anything for this target
- Abort — stop the entire discover run
Step 4: Append to YAML (ONLY after explicit approval)
For each approved entry, append to data/extraction-candidates.yaml under the correct key:
- If the feature matches a single domain, append under
features.<feature-name>[] - If the search produced category-generic results, append under
categories.<category>.<weak_dimension>[]
Never overwrite existing entries. Read the file, parse as YAML, append to the right array, write back with YAML.stringify. Preserve comments where possible (or warn the user if comments will be lost).
Each appended entry MUST have:
- repo: https://github.com/org/repo
description: One-line summary from the WebSearch snippet (or inferred if the snippet is thin)
notes: Added by /fdl-recommend-discover on YYYY-MM-DD from WebSearch query "<query>"The notes field creates an audit trail — anyone reviewing the YAML can see which entries were machine-suggested vs. hand-curated.
Step 5: Refresh the README
After a successful append, automatically run:
npm run fitness:recommendThis regenerates the README marker block with the new entries. Show the user the updated section count in the summary.
Step 6: Report
Print a summary:
fdl-recommend-discover complete
Target features scanned: N
Proposals presented: M
Entries appended: K
README refreshed: ✓
New candidates:
- security/prompt-attack-augmentation
+ leondz/garak
+ protectai/llm-guard
- trading/carbon-credits-trading
+ (skipped — no reputable OSS found)
Next step: run `git diff data/extraction-candidates.yaml` to review the additions,
then `git commit` once you're satisfied.Safety rules
- Never overwrite existing YAML entries. Only append. If a repo URL is already in the file, skip it silently and note "already mapped" in the summary.
- Never write without explicit user approval — every append MUST be preceded by an
AskUserQuestioncall. A user silence or timeout is NOT approval. - Flag suspicious URLs. Reject anything that isn't a clean
github.com/org/repoURL. Warn about URLs containing tracking parameters, URL shorteners, or non-github hosts. - Respect POPIA rules (see
.claude/CLAUDE.md). Do not send any blueprint content, PII, or secrets to WebSearch. Only use generic category + dimension keywords in queries. - Do not claim a repo is good without reading its description. If the WebSearch snippet is too thin to explain what the repo does, skip it and tell the user.
- Never auto-run
/fdl-extract-codeon the discovered repos. The discover skill only populates the candidates map. Actual extraction is always a separate, user-initiated step.
Relationship to other skills
fitness-recommend.js— This skill extends the data file thatfitness-recommend.jsreads. After appending, it calls the script to refresh the README./fdl-extract-code— This skill populates recommendations;/fdl-extract-codeacts on them. The two are decoupled: the discover skill never triggers an extraction./fdl-auto-evolve— After an extraction driven by a recommendation, auto-evolve runsnpm run fitness:recommend, which re-scores and verifies whether the recommended repo earned its keep (see Step 7 of auto-evolve).
Example invocation
user: /fdl-recommend-discover --uncovered
assistant: I'll scan for low-scoring blueprints without mapped candidates.
> node scripts/fitness-recommend.js --json
Found 1 uncovered feature:
- security/prompt-attack-augmentation (67/100, weakest: agi)
Searching WebSearch for reputable open-source implementations...
Proposals for security/prompt-attack-augmentation:
1. https://github.com/leondz/garak — NVIDIA LLM vulnerability scanner
2. https://github.com/protectai/llm-guard — input/output guardrails
3. https://github.com/Azure/PyRIT — Python Risk Identification Toolkit
[asks AskUserQuestion for approval]
user: [approves all 3]
assistant: Appending 3 entries to data/extraction-candidates.yaml under
features.prompt-attack-augmentation[] ...
Running npm run fitness:recommend ...
✓ README updated. 3 new candidates available for
security/prompt-attack-augmentation.
Review the diff: git diff data/extraction-candidates.yaml README.mdDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

