ctxlayer
Original:🇺🇸 English
Translated
Manages context layer domains, tasks, and documentation via the ctx CLI. Use when the user mentions context layer (e.g. "using context layer", "in the context layer", "in the context") ctx commands, context layer projects or tasks, or requests you to write any form of documentation -- such as documenting implemented features, research findings, or drawing diagrams. Also use when the user asks to clone a repo as context layer context or access context layer's "data" folder.
6installs
Sourceanatoliykmetyuk/ctxlayer
Added on
NPX Install
npx skill4agent add anatoliykmetyuk/ctxlayer ctxlayerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Context Layer
ctx CLI commands
The CLI manages domains and tasks. Available commands:
ctx- -- Show help and available commands
ctx - -- Create a new task (single entry point; initializes workspace if needed, prompts to create/select domain if missing, and may prompt "use current domain?")
ctx new [name] - -- Import a task from any domain as a local symlink (works on uninitialized workspaces; sets active when config is empty or missing)
ctx import - -- Run git in the current task directory
ctx git [args...] - -- Remove a task symlink (with optional task name)
ctx drop task [name] - -- Remove a domain directory from local
ctx drop domain [name](optional domain name).ctxlayer/ - -- Delete a task from the context store and remove its symlink
ctx delete task - -- Delete a domain from the context store and remove its local directory
ctx delete domain - -- Show the current active domain and task
ctx status - -- Set active domain and task (prompts to select)
ctx set
Git operations on the context layer: When the user requests any git operations (e.g., status, add, commit, push, pull) on the context layer or task context, perform them via rather than running directly.
ctx git <args>gitConfiguration lives at in the current working directory with two fields:
.ctxlayer/config.yamlyaml
active-domain: <domain-name>
active-task: <task-name>Domains are stored globally at . Each domain contains task folders, and each task folder has and subdirectories.
~/.agents/ctxlayer/domains/docs/data/Docs folder convention
When the user asks to document something -- implemented features, research findings, search results, architecture decisions, diagrams, or any other form of documentation -- follow these steps:
- Read to get
.ctxlayer/config.yamlandactive-domain.active-taskfolder is likely to be gitignored, so read it using command line..ctxlayer - Navigate to .
~/.agents/ctxlayer/domains/<active-domain>/<active-task>/docs/ - Create a new markdown file using this naming convention:
- Prefix: two-digit incrementing number based on existing files in the folder (,
01,02, ...).03 - Separator: a single dash.
- Name: descriptive kebab-case summary of the content.
- Extension: .
.md - Examples: ,
01-initial-research.md,02-feature-implementation.md.03-architecture-diagram.md
- Prefix: two-digit incrementing number based on existing files in the folder (
- Write the content the user requested, in the format they requested.
Each file is a standalone document covering one topic. The docs folder serves as a running report and journal for the task.
Data folder convention
The data folder at holds reference material for the task: sample data, configuration snippets, external repositories, and anything else useful as a reference during implementation.
~/.agents/ctxlayer/domains/<active-domain>/<active-task>/data/Cloning repos as context layer context
When the user asks to "clone a repo as context" or to add a repository to the context layer context, do NOT run a regular . Instead:
git clone- Navigate to the task's folder.
data/ - Run to add the repository as a git submodule.
git submodule add <repo-url> - Run to initialize and fetch it.
git submodule update --init
This keeps the data folder lightweight and version-controlled via submodule references rather than full repository copies.