agentleFS
cdeustcdeust/Cortex/skills/cortex-remember-global/SKILL.md

cortex-remember-global

Skill73 starsChanged 4 months agoMITView on GitHub

Store a global memory that is visible across all projects. Use when the user shares architecture rules, coding conventions, infrastructure facts, security policies, team agreements, or any knowledge that applies beyond a single project. Triggers on 'remember this everywhere', 'this applies to all projects', 'global rule', 'shared convention', 'infrastructure note', 'cross-project', or when the content is clearly universal (clean architecture, SOLID, deployment configs, server addresses).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Write as a rule or fact, not a narrative: "Always use UTC" not "Today we decided to use UTC in the auth service"

    line 43
  2. Distinctive:

    Keep it universal — no project-specific file paths, PR numbers, or branch names

    line 45
  3. Distinctive:

    If the weighted score exceeds threshold 3.0, the memory is automatically global — no explicit flag needed.

    line 77
  4. Distinctive:

    One rule per memory: Don't bundle 5 conventions into one memory — store each separately for better retrieval

    line 82
  5. Very specific:

    Tag consistently: Use architecture, convention, infrastructure, security, policy tags for easy filtering

    line 83
  6. Very specific:

    Review with visualization: Use cortex:open_visualization and click the "Global" filter to see all cross-project knowledge

    line 84

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

Remember Global — Store Cross-Project Knowledge

Keywords

global, everywhere, all projects, cross-project, shared, universal, convention, standard, rule, infrastructure, policy, team agreement, always, never, architecture rule, coding standard

Overview

Store knowledge that transcends any single project into Cortex's global memory. Global memories bypass domain filtering during recall — they're visible from every project you work on. Use this for architecture rules, coding conventions, infrastructure facts, security policies, and team agreements.

Cortex auto-detects many global patterns (clean architecture, dependency injection, server addresses, etc.), but use this skill explicitly when you want to guarantee cross-project visibility.

Workflow

Step 1: Identify Cross-Project Knowledge

Good candidates for global memory:

  • Architecture rules: "Always follow clean architecture — inner layers never import outer layers"
  • Coding conventions: "Use UTC timestamps in all database layers"
  • Infrastructure: "Production database at db.internal:5432, daily backups at 3AM UTC"
  • Security policies: "Rotate API keys every 90 days, store in 1Password vault"
  • Team agreements: "PRs must be under 300 lines, always include tests"
  • Reusable patterns: "Use factory injection for all handler composition roots"

Not global (project-specific): bug fixes, feature decisions for one project, file-specific notes.

Step 2: Store as Global

cortex:remember({
  "content": "<clear, self-contained knowledge that applies across projects>",
  "tags": ["<category>", "<topic>"],
  "is_global": true,
  "force": true
})

Content guidelines:

  • Write as a rule or fact, not a narrative: "Always use UTC" not "Today we decided to use UTC in the auth service"
  • Include the why when it's a rule: "Use dependency injection because it enables testing and follows SOLID"
  • Keep it universal — no project-specific file paths, PR numbers, or branch names

Step 3: Verify Global Status

The response includes:

  • is_global: true — confirms cross-project visibility
  • global_reason: "explicit" — stored because you explicitly requested it

Step 4: Anchor for Permanence (Optional)

Global memories are already high-value, but if they must never decay:

cortex:anchor({
  "memory_id": <id>,
  "reason": "Core architecture rule — permanent"
})

Auto-Detection

Even without is_global: true, Cortex automatically detects global content using a weighted signal classifier across 6 categories:

CategoryExample signals
Architectureclean architecture, SOLID, dependency injection, composition root
Conventioncoding standard, naming convention, best practice, team agreement
Infrastructureserver at, database URL, Docker compose, CI/CD pipeline
SecurityAPI key rotation, credential policy, authentication, encryption
Cross-projectall projects, shared across, universal, applies everywhere
KnowledgeUTC timestamps, WAL mode, connection pools, idempotency

If the weighted score exceeds threshold 3.0, the memory is automatically global — no explicit flag needed.

Tips

  • Be declarative: "Inner layers never import outer layers" is better than "We should probably avoid importing infrastructure in core"
  • One rule per memory: Don't bundle 5 conventions into one memory — store each separately for better retrieval
  • Tag consistently: Use architecture, convention, infrastructure, security, policy tags for easy filtering
  • Review with visualization: Use cortex:open_visualization and click the "Global" filter to see all cross-project knowledge

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.