Skip to content

docs: add context7.json and repair unreachable documentation links - #23

Merged
yunze7373 merged 1 commit into
mainfrom
codex/context7-config
Aug 25, 2026
Merged

docs: add context7.json and repair unreachable documentation links#23
yunze7373 merged 1 commit into
mainfrom
codex/context7-config

Conversation

@yunze7373

Copy link
Copy Markdown
Member

Why

Context7 currently indexes XMemo only as a website crawl of xmemo.dev
(/websites/xmemo_dev_product, 34 code snippets, Source Reputation Low, no
Benchmark Score). The service repository is private, so a repo-backed library was
assumed to be impossible.

This repository is public, active, and is the actual source of @xmemo/client on
npm — 143 tracked files, 101 KB of markdown across 21 documents, plus the CLI
implementation in src/. Context7 does not index it and it carries no
context7.json.

Comparable libraries in this category sit at 1,442–5,428 snippets. A repo-backed
library is also the only path that earns Source Reputation from real repository
activity, which a website crawl cannot provide.

Changes

context7.json (new) — validated against
https://context7.com/schema/context7.json with a real JSON Schema run, not by
eye. description is 180 characters against the schema's 200 limit; the first
draft was 207 and would have been rejected.

folders is deliberately left empty so the whole repository is scanned: the
usable content is spread across the root markdown, skills/, plugins/,
extensions/ and src/, whereas docs/ holds only two SVG assets. Simulating
the config against git ls-files gives 117 of 143 tracked files indexed, with
26 excluded — CI workflows, lockfiles, changelogs, tests, build scripts and SVGs.

The 16 rules were checked against the implementation rather than written from
memory. For example setup <client-id> [--url <url>] and
mcp add <client-id> [--write] are both declared in src/ui/help.js.

Two links that do not resolve:

  • plugins/kiro/POWER.md pointed at https://xmemo.dev/privacyHTTP 404.
    The published page is /legal/privacy.
  • The same file linked its licence through
    file:///h:/repos/memory-os-cli/plugins/kiro/LICENSE — an absolute path from
    another machine that had leaked into published documentation. Now ./LICENSE.

Both live in files an indexer will read.

README.md — the documentation section did not link to the canonical service
documentation tree at xmemo.dev/docs anywhere in the repository. Added, with
quickstart, MCP, tools, API, troubleshooting and llms.txt entries.

Verification

  • context7.json validates against the official schema (jsonschema, Draft 2020-12)
  • All 7 added URLs return 200; all 3 relative paths exist
  • node --test "test/**/*.test.js"140 passed, 0 failed (before and after)
  • context7.json is not published to npm — package.json uses a files allowlist

Follow-up (human step)

Adding context7.json does not itself trigger indexing. The repository still has
to be submitted at https://context7.com/add-library as
https://github.com/yonro/memory-os-cli.

After that XMemo has two Context7 libraries: /websites/xmemo_dev_product for the
hosted service and /yonro/memory-os-cli for the client.

🤖 Generated with Claude Code

Add a repository-root context7.json so documentation indexers parse this repo
with the right metadata, scope and usage rules instead of guessing. Validated
against https://context7.com/schema/context7.json; folders is left empty because
the usable content is spread across the root markdown, skills/, plugins/,
extensions/ and src/ rather than concentrated in docs/, which holds only two SVG
assets. The exclusions drop CI workflows, lockfiles, changelogs, tests and build
scripts, leaving 117 of 143 tracked files indexable.

Every rule was checked against the CLI implementation rather than written from
memory: `setup <client> [--url <url>]` and `mcp add <client> [--write]` are both
declared in src/ui/help.js.

Repair two links that do not resolve:

- plugins/kiro/POWER.md pointed at https://xmemo.dev/privacy, which returns 404;
  the published page is /legal/privacy.
- the same file linked its licence through file:///h:/repos/memory-os-cli/...,
  an absolute path from another machine that had leaked into published
  documentation. It is now the relative ./LICENSE.

Extend the README's documentation section with the canonical service
documentation tree at xmemo.dev/docs, which this repository did not link to
anywhere. All added URLs were verified to return 200.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@yunze7373
yunze7373 merged commit 57c8a23 into main Aug 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant