agentleFS
hjertefolgerhjertefolger/cortex/skills/cortex-configure/SKILL.md

cortex-configure

Skill173 starsChanged 10 months agoMITView on GitHub

Configure Cortex settings with presets

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Full: - All features enabled

    line 18
  2. Distinctive:

    When to automatically save context

    line 39
  3. Distinctive:

    If currently enabled: "Keep enabled", "Disable"

    line 58
  4. Distinctive:

    If currently disabled: "Enable", "Keep disabled"

    line 59
  5. Distinctive:

    If the user disables awareness, skip userName and timezone questions entirely.

    line 60
  6. Distinctive:

    If already set (show current value): "Keep current", "Change" (ask for new name), "Turn off" (set null)

    line 63
  7. Distinctive:

    If not set: "Set a name" (ask for name string), "Skip" (keep null)

    line 64
  8. Distinctive:

    Ask user what they want to configure:

    line 75
  9. Very specific:

    If preset: Apply using node dist/index.js configure <preset>

    line 79
  10. Very specific:

    Read current config from ~/.cortex/config.json

    line 82
  11. Distinctive:

    Ask about specific setting to change

    line 83
  12. Distinctive:

    Update and save config

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cortex Configure

Adjust Cortex settings after initial setup.

Configuration Options

Presets

Offer quick presets for common configurations:

Full - All features enabled

  • Statusline: enabled
  • Auto-archive: enabled
  • Auto-save threshold: 70%
  • Awareness: enabled

Essential - Core features only

  • Statusline: enabled
  • Auto-archive: enabled
  • Auto-save threshold: 75%

Minimal - Commands only

  • Statusline: disabled
  • Auto-archive: disabled
  • Auto-save threshold: 85%

Individual Settings

Allow fine-tuning of specific settings:

  1. Auto-save Threshold (0-100%)
    • When to automatically save context
    • Default: 70%
  2. Restoration Token Budget (number)
    • Max tokens for restoration context
    • Default: 2000
  3. Restoration Message Count (number)
    • Number of messages to restore
    • Default: 5
  4. Statusline Enabled (true/false)
    • Show Cortex in status line
    • Default: true
  5. Awareness (section)

    • Injects user/time/date context at session start and after context clear

    Step 1: enabled (true/false) — ask first, before anything else:

    • If currently enabled: "Keep enabled", "Disable"
    • If currently disabled: "Enable", "Keep disabled"
    • If the user disables awareness, skip userName and timezone questions entirely.

    Step 2: userName — only ask if awareness is enabled:

    • If already set (show current value): "Keep current", "Change" (ask for new name), "Turn off" (set null)
    • If not set: "Set a name" (ask for name string), "Skip" (keep null)
    • IMPORTANT: Never pre-fill or guess the user's name. Always let the user type it.

    Step 3: timezone — only ask if awareness is enabled:

    • "Auto-detect" → set null (uses system timezone)
    • "Custom" → ask user for IANA timezone string (e.g. "America/New_York")
    • "Off" → set "off" (omit Date/Time lines entirely, only show User if set)
    • IMPORTANT: Never pre-fill a timezone value. Let the user choose and type.

Usage Flow

  1. Ask user what they want to configure:
    • Apply a preset
    • Adjust specific settings
  2. If preset: Apply using node dist/index.js configure <preset>
  3. If specific settings:
    • Read current config from ~/.cortex/config.json
    • Ask about specific setting to change
    • Update and save config
  4. Confirm changes applied

Configuration File

Location: ~/.cortex/config.json

{
  "statusline": {
    "enabled": true,
    "showFragments": true,
    "showLastArchive": true,
    "showContext": true
  },
  "archive": {
    "autoOnCompact": true,
    "projectScope": true,
    "minContentLength": 50
  },
  "automation": {
    "autoSaveThreshold": 70,
    "restorationTokenBudget": 2000,
    "restorationMessageCount": 5
  },
  "awareness": {
    "enabled": false,
    "userName": null,
    "timezone": null
  }
}

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.