Skip to content

Dianel555/DSkills / skills/ace-tool

ace-tool

Verified

Semantic codebase search, code indexing, and prompt enhancement via standalone CLI. Use when: (1) Semantic code search with natural language queries, (2) Code indexing for remote codebase retrieval, (3) Prompt enhancement with codebase context, (4) Before grep/find/glob operations for better accuracy, (5) Complex requirements clarification, (6) Large codebase navigation. Triggers: "search context", "enhance prompt", "find code that", "index project", "clarify requirements". IMPORTANT: Always use ace-tool BEFORE grep/find/glob for semantic-level code location.

tests/test_indexer_ignore.py

View on GitHub
"""Indexer ignore patterns: .gitignore + .aceignore merge behavior."""

from indexer import Indexer


class TestLoadIgnorePatterns:
    def test_reads_gitignore(self, tmp_path):
        (tmp_path / ".gitignore").write_text("*.pyc\n__pycache__\n", encoding="utf-8")
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert "*.pyc" in idx._gitignore_patterns
        assert "__pycache__" in idx._gitignore_patterns

    def test_reads_aceignore(self, tmp_path):
        (tmp_path / ".aceignore").write_text("secret/\n*.log\n", encoding="utf-8")
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert "secret/" in idx._gitignore_patterns
        assert "*.log" in idx._gitignore_patterns

    def test_merges_both_files(self, tmp_path):
        (tmp_path / ".gitignore").write_text("*.pyc\n", encoding="utf-8")
        (tmp_path / ".aceignore").write_text("*.log\n", encoding="utf-8")
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert "*.pyc" in idx._gitignore_patterns
        assert "*.log" in idx._gitignore_patterns

    def test_skips_comments_and_empty_lines(self, tmp_path):
        (tmp_path / ".aceignore").write_text("# comment\n\n  \nvalid_pattern\n", encoding="utf-8")
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert "valid_pattern" in idx._gitignore_patterns
        assert "# comment" not in idx._gitignore_patterns

    def test_no_files_empty_patterns(self, tmp_path):
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert idx._gitignore_patterns == []

    def test_aceignore_only(self, tmp_path):
        (tmp_path / ".aceignore").write_text("build/\n", encoding="utf-8")
        idx = Indexer(str(tmp_path), "http://fake.url", "fake-token")
        assert "build/" in idx._gitignore_patterns
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexUnverifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall