just-init

Navigate and document Python packages using __init__.py docstrings as living indexes: read them before exploring, update them after every file change.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "just-init" with this command: npx skills add fredericosantos/skills/fredericosantos-skills-just-init

just-init

Use __init__.py docstrings as the single source of truth for navigating and documenting Python packages.

Read Rule

When navigating to a new directory in the codebase, first extract its __init__.py docstring to understand the package:

  1. grep -nE "^(\"\"\"|''')" <file> | head -2 to get the opening and closing line numbers.
  2. Read the file with those line numbers as offset (start line) and limit (number of lines).

Use the docstring tree to decide which files to explore next. Apply recursively when entering sub-packages.

Docstring Format

Every __init__.py must start with a triple-quoted docstring:

"""
One-line description of what this package does.

package_name/
├── __init__.py        # Package init and public exports.
├── module_a.py        # Brief description of module_a.
├── module_b.py        # Brief description of module_b.
└── subpackage/        # Brief description of subpackage.
"""

Rules:

  • ├── for all entries except the last (└──).
  • .py files first (alphabetical), then subdirectories (alphabetical).
  • Subdirectories end with / and are not expanded here.
  • Descriptions under 10 words. Package name matches the directory name.
  • Non-Python directories (data, fixtures): list with trailing /, no __init__.py.

Update Rule

After any file or directory add, remove, or rename inside a package, immediately update the affected __init__.py docstring. When creating a new package, create __init__.py with its docstring first, then add other files.

Propagate changes: update both the sub-package's __init__.py and the parent's if the sub-package entry changed.

Missing docstring: when encountering an __init__.py without a docstring, generate one from the current directory contents before proceeding.

Outdated docstring: if the docstring does not match actual files, update it to reflect reality before continuing.

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

astral-ruff

No summary provided by upstream source.

Repository SourceNeeds Review
General

astral-ty

No summary provided by upstream source.

Repository SourceNeeds Review
General

astral-uv

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1171Profile unavailable