Skip to content
memex-kb-usage logo

Using the Memex Knowledge Base

memex-kb-usage

This skill should be used when the user asks to "search the KB", "find documentation", "add to knowledge base", "document this pattern", "check organizational docs", or when an agent discovers reusable knowledge worth preserving.

SKILL.md

Full skill instructions

Using the Memex Knowledge Base

Memex is a knowledge base for documenting patterns, infrastructure, troubleshooting guides, and operational knowledge. This skill teaches how to search, contribute, and maintain the KB effectively.

Project vs User KB

Memex supports two knowledge base locations:

ScopeLocationUse For
project./​kb/Team docs, shared patterns. Commit to git.
user~/​.memex/​kb/Personal notes, available across all projects.

By default, searches include both KBs. Use --scope to target one:

mx search "query" --scope=project   # Project KB only
mx add --title="Note" --scope=user  # Add to personal KB
mx list --scope=project             # List project entries only

When to Search the KB

Search the knowledge base BEFORE asking questions about:

  • Infrastructure (DNS, cloud, networking, servers)
  • Development conventions and patterns
  • CI/​CD pipelines and deployment procedures
  • Known issues and their solutions
  • Architectural decisions and trade-offs
mx search "kubernetes deployment"
mx search "cloudflare" --mode=semantic    # Semantic search only
mx search "dns" --tags=infrastructure     # Filter by tag

If no relevant entries are found, that's valuable information - consider contributing what you learn.

When to Contribute

Add new entries when you discover:

  • Solutions to problems that took significant debugging
  • Patterns that should be reused across projects
  • Infrastructure configurations worth documenting
  • Operational procedures that aren't obvious
  • Architectural decisions with their rationale

Do NOT create entries for:

  • Project-specific details (use project docs instead)
  • Temporary workarounds (unless they're long-term)
  • Information already in upstream documentation

Entry Format

Every KB entry requires YAML frontmatter:

---
title: Clear, Descriptive Title
tags: [infrastructure, kubernetes, networking]
created: 2024-01-15
---

# Title

Content goes here...

See [[references/​entry-format]] for the complete specification.

Modifying Entries

Three commands for different modification needs:

mx patch - Surgical edits (preferred)

Find and replace specific text while preserving everything else:

mx patch devops/​deploy.md --find "old text" --replace "new text"
mx patch devops/​deploy.md --find "TODO" --replace "DONE" --replace-all
mx patch devops/​deploy.md --find "..." --replace "..." --dry-run  # Preview

Use --dry-run to preview changes before applying.

mx append - Add content to existing entry

Append content to the end of an entry (or create if not found):

mx append "Daily Log" --content="Session summary here"
mx append "API Docs" --file=new-section.md

mx replace - Full replacement

Overwrite entire content or tags (use sparingly):

mx replace path/​entry.md --tags="new,tags"
mx replace path/​entry.md --content="Completely new content"
mx replace path/​entry.md --file=rewritten.md

When to use each:

CommandUse When
mx patchFixing typos, updating specific sections, surgical edits
mx appendAdding new sections, appending logs, incremental updates
mx replaceRewriting entries, changing tags, full overhaul

Linking Best Practices

Bidirectional links help readers discover related knowledge:

See also [[devops/​kubernetes-basics]] for cluster setup.
Related: [[troubleshooting/​dns-issues]]

Guidelines for linking:

  • Link when entries genuinely relate (encouraged, not required)
  • Think about what a reader might want to explore next
  • Don't force links just to have them
  • Update existing entries to link to new content when relevant

Tag Taxonomy

Use existing tags when possible. Check what tags exist before inventing new ones:

mx tags  # List all tags with usage counts

Common tags by category:

  • infrastructure: cloud, dns, networking, servers, storage
  • devops: ci, cd, monitoring, deployment, docker, kubernetes
  • development: python, rust, go, testing, tooling
  • troubleshooting: debugging, performance, errors

See [[references/​categories]] for the full category taxonomy.

Quality Guidelines

Titles: Be specific. "Kubernetes Pod Networking" not "K8s Stuff".

Content:

  • Keep entries focused on one topic
  • Include actionable information (commands, configs, steps)
  • Add examples when they clarify usage
  • Explain the "why" not just the "what"

Maintenance:

  • Update existing entries rather than creating duplicates
  • Mark outdated information clearly
  • Remove entries that are no longer relevant

Quick Reference

ActionCommandExample
Searchmx searchmx search "cloudflare dns"
Add entrymx addmx add --title="DNS Setup" --tags=infra --content="..."
Read entrymx getmx get infrastructure/​dns.md
Patch entrymx patchmx patch path.md --find="X" --replace="Y"
Appendmx appendmx append "Title" --content="..."
Replacemx replacemx replace path.md --tags="new,tags"
Browsemx treemx tree
Listmx listmx list --tags=devops
Tagsmx tagsmx tags
Healthmx healthmx health

Useful flags:

  • --scope=project|user - Target specific KB (works with search, add, list)
  • --mode=semantic|keyword|hybrid - Search mode (default: hybrid)
  • --json - Machine-readable output (most commands)
  • --dry-run - Preview changes without applying (patch)

Anti-patterns

  • Creating an entry without searching first (may duplicate)
  • Using mx replace when mx patch would preserve context
  • Linking everything to everything (dilutes link value)
  • Using project-specific tags in org-wide KB
  • Leaving entries without tags or with wrong category

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View