context-tree

Generate an annotated project tree from context.md summaries.

5|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/Bind/skillz.sh --skill context-tree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-tree
Source: https://github.com/Bind/skillz.sh/tree/main/.opencode/skill/context-tree
Command: npx skills add https://github.com/Bind/skillz.sh --skill context-tree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides immediate orientation for developers by generating an annotated directory tree that injects summaries from per-directory context.md files, helping teams understand project layout quickly.

Core Features & Use Cases

  • Annotated tree generation: walks the repository and prints a navigable structure with inline context notes from context.md files.
  • Onboarding and session alignment: auto-calls at session start to keep every visit in sync with the repo layout.
  • Configurability: respects ignore lists, collapse rules, and depth limits to tailor the view.

Quick Start

Use the context-tree skill to generate a project map for the current repo: bun .opencode/skill/context-tree/tree.ts --max-depth 3 Optional flags: --root <path>, --ignore <list>, --collapse <list>, --no-collapse-file, --no-files

Frequently Asked Questions about context-tree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an annotated directory tree for project onboarding?

Generate an annotated directory tree by running the context-tree script on your repository. It walks the project structure, reads per-directory context.md files, and injects their summaries inline to produce a navigable map for quick orientation.

Can I limit the depth of the project structure map that gets rendered?

Yes, you can limit the project structure map depth using the --max-depth flag. This configures the directory walk to render only to a specified level, keeping the output concise and tailored to your onboarding needs.

How do I ignore specific directories when generating a repository tree?

Ignore specific directories by passing the --ignore flag with a list of paths. The tree generator honors these ignore configurations to exclude unwanted folders from the final navigable project map output.

What is the best way to keep developer sessions aligned with the current repository layout?

Keep sessions aligned by auto-calling the tree generation at session start. This renders the current repository layout with inline context notes, ensuring every visit stays in sync with the project's directory structure.

Does this annotated tree generation work without modifying the repository?

Yes, the tree generation operates entirely in read-only mode. It scans the repository, reads context.md files, and prints a navigable structure without writing or modifying any files in your project.