cortex-skills-loop

cortex-skills-loop is a skill for Claude Code, Codex from NickCrew/Claude-Cortex. It costs 45 tokens per session (1,123 once invoked), scanned A, original, MIT.

A workflow for an AI recommendation system that suggests relevant skills as the task context changes. It also collects feedback and ratings so future recommendations can improve.

In plain words
What is it for?
Use it to request recommendations after a domain or file-type change, provide feedback on suggestions, and rate skills after completing a task.
Why use it?
It helps keep the active set of coding-agent skills aligned when files, agents, or the subject of the work changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nickcrew/claude-cortex/cortex-skills-loop
Any agent
npx skills add NickCrew/Claude-Cortex --skill cortex-skills-loop
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cortex-skills-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/nickcrew/claude-cortex/cortex-skills-loop.svg)](https://agentmods.dev/skills/nickcrew/claude-cortex/cortex-skills-loop)
Your own site
<a href="https://agentmods.dev/skills/nickcrew/claude-cortex/cortex-skills-loop"><img src="https://agentmods.dev/badge/skills/nickcrew/claude-cortex/cortex-skills-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01123
Opus 5 $0.00023 $0.00562
Sonnet 5 $0.00009 $0.00225
Haiku 4.5 $0.00005 $0.00112

Measured 3d ago against content hash e3b5f8d5d6e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cortex-skills-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cortex-skills-loop/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cortex Skills Loop

Overview

The cortex CLI includes an AI-powered recommendation engine that learns from usage patterns. This skill establishes the workflow for participating in that learning loop: get recommendations when context shifts, provide feedback on recommendation quality, and rate skills after use. Each interaction improves future recommendations.

When to Engage

Signals That Trigger Recommendations

Run cortex skills recommend when any of these mismatch signals appear:

  • File pattern shiftgit diff or the working set includes file types not covered by active skills (e.g., .tf Terraform files appear but no infrastructure skill is active, or **/auth/** paths get touched without security skills loaded)
  • Agent activation change — a new agent gets activated that likely has complementary skills not yet loaded (the recommender maps agents to skill sets internally)
  • Explicit domain pivot — the user switches focus to a different domain ("now let's handle the database migrations") and the current skill set is oriented elsewhere
  • Skill gap felt — a task requires domain knowledge that no active skill covers, or an active skill is providing no value to the current work

Signals That Trigger Rating/Feedback

  • Task completion — a skill was active during work that just finished successfully
  • Recommendation acted on — a recommendation was recently followed or dismissed
  • Negative experience — a skill actively misled or produced unhelpful guidance

When Not to Engage

Do not run recommendations on every session start or for routine tasks where the active skill set is clearly appropriate. The loop adds value through selective, signal-driven use.

Workflow

1. Recommend — Surface Relevant Skills

When a context change is detected, run:

cortex skills recommend

This analyzes the current git state, active agents, and historical patterns to suggest skills grouped by confidence level:

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 137 lines · 45 tokens per session scan A e3b5f8d5d6e1

Subscribe to this mod's changes

cortex-skills-loop is a skill published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 1,123 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

awareness

AI situational awareness — internal threat detection for hallucination risk, scope creep, and context degradation. Maps Cooper color codes to reasoning states and OODA loop to real-time decisions. Use during any task where reasoning quality matters, when operating in unfamiliar territory, after detecting early warning…

pjt222/agent-almanac · 82 tokens

collect-preserve-specimens

Collect and preserve insect specimens following museum-grade standards including legal compliance, collection methods, humane dispatch, dry pinning, wet preservation, labeling, storage, and curation. Covers permit requirements, protected species regulations, sweep nets, beating trays, pitfall traps, light traps…

pjt222/agent-almanac · 139 tokens

aikido

Practice aikido as a defensive martial art emphasizing harmony, redirection, and controlled resolution. Covers centering and grounding, ukemi (safe falling and rolling), core techniques (irimi-nage, shiho-nage, kote-gaeshi, ikkyo), blending and tai sabaki (body movement), randori (multiple attacker practice), weapons…

pjt222/agent-almanac · 122 tokens

analyze-tensegrity-system

Analyze a tensegrity system by identifying compression struts and tension cables, classifying type (class 1/2, biological/architectural), computing prestress equilibrium, verifying stability via Maxwell's rigidity criterion, and mapping biological tensegrity (microtubules, actin, intermediate filaments). Use when…

pjt222/agent-almanac · 94 tokens

appraise-gemstone

Appraise gemstone value using the four Cs (color, clarity, cut, carat), origin assessment, treatment detection, and market factor analysis. Advisory educational guidance only — not a certified appraisal. Use when understanding factors that determine a gemstone's value, pre-screening stones before a professional…

pjt222/agent-almanac · 88 tokens

assess-context

AI context assessment — evaluating problem malleability, mapping structural rigidity versus flexibility, analyzing transformation pressure, and estimating capacity to adapt. Use when a complex task feels stuck and it is unclear whether to push through or pivot, before a significant approach change to assess whether…

pjt222/agent-almanac · 90 tokens