.agents/skills/learn-from-repo/SKILL.md
Extract actionable patterns, architecture decisions, code conventions, and skill-relevant insights from GitHub/GitLab repositories. Assess repo credibility, run the full security scan pipeline, and apply findings to existing skills, new skills, or the current project. Load when the user asks to learn from a repo, extract patterns from a codebase, study a repository, or analyze a repo for reusable techniques. Also triggers on "learn from this repo", "learn from this repository", "what can we learn from this codebase", "extract patterns from this repo", "study this repo".
npx skillsauth add dvy1987/agent-loom learn-from-repoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Sub-skill of learn-from (orchestrator). You analyze repositories, extract actionable patterns from actual source code, and recommend whether to apply them. Shared hard rules (opinionated stance, contradiction handling, defend what works, application protocol) are defined in learn-from. This skill adds repo-specific workflow.
secure-* skills (discover via ls .agents/skills/secure-*). secure-skill-repo-ingestion is especially critical — it checks for poisoned examples, dependency attacks, file/path traversal, and format-based attacks.Accept via: GitHub/GitLab URL, local path, or cloned directory.
package.json, Cargo.toml, pyproject.toml, .agents/, AGENTS.md, CI configs, test directoriesScore across 6 dimensions (max 12/12). Gate: ≥7/12 to proceed.
| Dimension | 0 | 1 | 2 | |---|---|---|---| | Author/Org Reputation | Unknown, no history | Some repos, moderate activity | Established org or known maintainer | | Repo Maturity | <3 months, <10 commits | 6–12 months, regular commits | >1 year, consistent history | | Community Adoption | <50 stars, no forks | 50–500 stars, some forks | >500 stars, many dependents | | Code Quality Signals | No tests, no CI | Partial test coverage or CI | Tests + CI + linting | | Maintenance Status | Archived or no commits in 6mo | Sporadic activity | Active: recent commits, issues addressed | | Documentation Quality | README stub only | README + some inline docs | Comprehensive docs, examples, ADRs |
Quick checks (fail any = stop):
If 7–8/12: warn "Borderline." If impressive stars but sparse tests, explicitly warn that popularity doesn't validate patterns.
Run security pipeline per learn-from protocol, with emphasis on secure-skill-repo-ingestion. BLOCKED = stop.
Scan repo source code for patterns. Classify using taxonomy from learn-from.
Areas to scan: architecture patterns, code conventions, testing strategies, error handling, skill files (.agents/skills/), CI/CD workflows, dependency management.
For every pattern, state your recommendation:
Match insights to existing skills and apply per learn-from shared application protocol (six outcomes, contradiction resolution, 200-line gate, validate-skills ≥10/14).
Citation format:
Source: [Owner]/[Repo] ([Language]). [URL]. Stars: [N]. Last active: [date]. Credibility: [N]/12.
Applied: [what was extracted and where it was applied]
═══ Repo Credibility Report ═══
Repo: [owner]/[name] | Language: [lang] | Stars: [N] | Last commit: [date]
Credibility: [N]/12 | Verdict: [PASS/BORDERLINE/REJECT]
═══ Security ═══
[secure-* verdicts]
═══ Extracted Insights ═══
[Tag]: [insight] | Agent recommendation: [APPLY/PARTIAL/SKIP/KEEP CURRENT] — [reasoning]
═══ Application Plan ═══
[Per learn-from shared protocol]
═══ Extracted Insights ═══ GOTCHA: Tool-use prompts need explicit format constraints | Recommend: APPLY — verified in 12+ examples TECHNIQUE: Prefilled assistant turns for structured output | Recommend: PARTIAL — apply to create-agent-prompt, skip for general skills (too API-specific) FAILURE_MODE: Streaming without chunk validation = silent data loss | Recommend: APPLY — add to debug-and-fix gotchas
═══ Application Plan ═══
After completing, always report:
Repo: [owner]/[name] | Credibility: [N]/12 | Security: [SAFE/BLOCKED]
Insights: [N] extracted | Recommendations: [N] APPLY, [N] PARTIAL, [N] SKIP, [N] KEEP CURRENT
Skills modified: [list] | Created: [list] | Contradictions resolved: [list]
validate-skills: [skill]: [before] → [after] | Citation logged: [yes/no]
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.