← 返回 Skills 市场
keshav55

Atris

作者 keshav55 · GitHub ↗ · v1.1.0
cross-platform ✓ 安全检测通过
1328
总下载
0
收藏
4
当前安装
4
版本数
在 OpenClaw 中安装
/install atris
功能描述
Codebase intelligence — generates structured navigation maps with file:line references so agents stop re-scanning the same files every session. Use when exploring code, answering "where is X?", or onboarding to a new codebase.
使用说明 (SKILL.md)

Atris — Codebase Intelligence

Maintain a structured map of the codebase with exact file:line references. One scan, permanent knowledge. Saves 80-95% of tokens on code exploration.

Scope

  • Use in any repo where you need to navigate code.
  • Creates atris/MAP.md as the single navigation index.

MAP-first rule

Before searching for anything in the codebase:

  1. Read atris/MAP.md
  2. Found your keyword → go directly to file:line. Done.
  3. Not found → search once with rg, then add the result to MAP.md

The map gets smarter every time you use it. Never let a discovery go unrecorded.

First time setup

If atris/MAP.md doesn't exist, generate it:

  1. Create atris/ folder in the project root
  2. Scan the codebase (rules below)
  3. Write the result to atris/MAP.md
  4. Tell the user: "Built your codebase map at atris/MAP.md."

If atris/MAP.md already exists, use it. Regenerate only if the user requests it or the map is clearly stale (references missing files, line numbers way off).

How to scan

Skip: node_modules, .git, dist, build, vendor, __pycache__, .venv, .env*, *.key, *.pem, credentials*, secrets*

Use ripgrep to extract structure:

# Key definitions
rg "^(export|function|class|const|def |async def |router\.|app\.|@app\.)" --line-number -g "!node_modules" -g "!.git" -g "!dist" -g "!.env*"

# Route definitions
rg "(get|post|put|delete|patch)\s*\(" --line-number -g "*.ts" -g "*.js" -g "*.py"

# Entry points
rg "listen|createServer|app\.start|if __name__" --line-number

MAP.md structure

# MAP.md — [Project Name] Navigation Guide

> Generated by Atris | Last updated: YYYY-MM-DD

## Quick Reference

rg "functionName" path/to/file.ext    # Description (line N)
rg "className" path/to/file.ext       # Description (line N)

Extract the top 15-25 most important symbols: entry points, exports, route handlers, main classes, config loaders.

By-Feature Map

Group code by what it does. Every reference includes exact file path and line numbers.

### Feature: User Authentication
**Purpose:** Login, registration, token management
- **Entry:** `src/auth/login.ts:45-89` (handleLogin)
- **Validation:** `src/auth/validate.ts:12-67` (validateToken)
- **Model:** `src/models/user.ts:8-34` (User schema)
- **Routes:** `src/routes/auth.ts:5-28` (POST /login, POST /register)

By-Concern Map

Group by cross-cutting patterns (error handling, logging, auth middleware, etc).

Critical Files

Flag high-impact files with why they matter and key functions with line numbers.

Entry Points

How execution flows — dev server startup, request lifecycle, build pipeline.

Keeping it fresh

Update MAP.md surgically when the codebase changes:

  • New file → add to relevant section
  • Moved/renamed → update all references
  • New important function → add to Quick Reference
  • Deleted file → remove from map
  • Major refactor → regenerate affected sections

Small updates, not full regeneration. The map evolves with the code.

Anti-patterns

  • Searching without checking MAP first
  • Letting discoveries go unrecorded
  • Regenerating the full map when a surgical update would do
  • Including secrets, credentials, or .env files in the map
  • Guessing file locations instead of using the index
安全使用建议
What to consider before installing/using Atris: - Behavior: Atris will scan your repository and create/modify atris/MAP.md in the project root. Review and agree to that file being added to the repo or add it to .gitignore if you don't want it committed. - Dependency: SKILL.md requires the 'rg' (ripgrep) binary. Ensure the agent environment has ripgrep available; the registry metadata omits this requirement — expect to install ripgrep yourself if needed. - Sensitive data: The instructions explicitly exclude .env, secrets, keys, etc., but always review the generated MAP.md before committing or sharing, since it records file paths and line references which could reveal sensitive structure. - Scope and safety: The skill operates locally on repository files and does not exfiltrate data or request credentials. If you run the agent in a workspace that contains other projects or parent folders, confirm the scan scope so the map doesn't include unrelated files. - Team policy: If multiple contributors access the repo, decide whether the map should be tracked in version control or kept local, and establish a review process for changes to MAP.md. Overall: the skill is internally coherent and appropriate for its stated purpose; the only actionable inconsistency is the missing 'rg' requirement in the registry metadata and the fact it will write a persistent file you should review before committing.
功能分析
Type: OpenClaw Skill Name: atris Version: 1.1.0 The skill is designed for codebase intelligence, generating a navigation map using `rg` (ripgrep). It explicitly instructs the agent to skip sensitive files and directories like `.env*`, `*.key`, `*.pem`, `credentials*`, and `secrets*` during the scan, which is a strong indicator of good security practice. There are no instructions for data exfiltration, malicious execution, persistence, or prompt injection attempts against the agent. The commands used are standard search operations, and the output is written to a local file (`atris/MAP.md`).
能力评估
Purpose & Capability
The skill claims to produce a codebase navigation map and its instructions explicitly describe scanning the repo and writing atris/MAP.md — this is coherent. One inconsistency: the registry metadata supplied with the skill earlier listed no required binaries, but the SKILL.md declares a dependency on 'rg' (ripgrep). Requiring 'rg' is reasonable for the described function, but the metadata mismatch should be corrected.
Instruction Scope
SKILL.md confines actions to scanning the project tree with ripgrep, excluding common vendored and secrets files, and creating/updating atris/MAP.md. It does not instruct reading unrelated system files, environment variables, or sending data to external endpoints. It does instruct modifying the repository (creating atris/ and MAP.md), which is expected for this feature.
Install Mechanism
This is an instruction-only skill with no install spec (lowest install risk). The only runtime dependency is the 'rg' binary referenced in SKILL.md; no installers or remote downloads are present. Because there's no install step, ensure 'rg' is available in the agent environment or the agent will need to obtain it via out-of-band means.
Credentials
The skill requests no environment variables, credentials, or config paths. Its scope — reading repository files and writing a map file — matches the lack of credential requests.
Persistence & Privilege
The skill writes a persistent file (atris/MAP.md) into the project root and expects ongoing edits to that file. This is normal for a mapping tool but has privacy/commit implications (the map can contain file paths and line numbers). The skill does not request elevated system privileges or modify other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install atris
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /atris 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Clarified usage scope and MAP.md-first workflow for all code navigation tasks. - Expanded ignore rules to skip secrets, environment files, and credentials during scans. - Streamlined scanning and update instructions for clarity and concise onboarding. - Added an anti-patterns section to emphasize correct usage and security. - MAP.md structure and update procedures are now more explicit and concise.
v1.0.2
Description aligned with atris.ai
v1.0.1
Updated description
v1.0.0
Structured codebase intelligence. Generates navigation maps with file:line references. Scan once, reference forever.
元数据
Slug atris
版本 1.1.0
许可证
累计安装 4
当前安装数 4
历史版本数 4
常见问题

Atris 是什么?

Codebase intelligence — generates structured navigation maps with file:line references so agents stop re-scanning the same files every session. Use when exploring code, answering "where is X?", or onboarding to a new codebase. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1328 次。

如何安装 Atris?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install atris」即可一键安装,无需额外配置。

Atris 是免费的吗?

是的,Atris 完全免费(开源免费),可自由下载、安装和使用。

Atris 支持哪些平台?

Atris 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Atris?

由 keshav55(@keshav55)开发并维护,当前版本 v1.1.0。

💬 留言讨论