Skip to content

Dianel555/DSkills / skills/serena

serena

Verified

Semantic code understanding with IDE-like symbol operations. Use when: (1) Large codebase analysis (>50 files), (2) Symbol-level operations (find, rename, refactor), (3) Cross-file reference tracking, (4) Project memory and session persistence, (5) Multi-language semantic navigation. Triggers: "find symbol", "rename function", "find references", "symbol overview", "project memory". IMPORTANT: Prioritize Serena's symbolic tools over file-based grep/read for code exploration.

tools/cli/memory.py

View on GitHub
"""Memory operations command group."""
import typer
from . import State
from ..output import output_json

app = typer.Typer(help="Project memory operations (persistent knowledge)")


@app.command("list")
def list_memories():
    """List all project memories."""
    result = State.core.call_tool("list_memories")
    output_json(result)


@app.command("read")
def read_memory(
    name: str = typer.Argument(..., help="Memory name"),
):
    """Read memory content."""
    result = State.core.call_tool(
        "read_memory",
        memory_file_name=name,
    )
    output_json(result)


@app.command("write")
def write_memory(
    name: str = typer.Argument(..., help="Memory name"),
    content: str = typer.Option(..., "--content", "-c", help="Memory content"),
):
    """Create or update memory."""
    result = State.core.call_tool(
        "write_memory",
        memory_name=name,
        content=content,
    )
    output_json(result)


@app.command("edit")
def edit_memory(
    name: str = typer.Argument(..., help="Memory name"),
    content: str = typer.Option(..., "--content", "-c", help="New memory content"),
):
    """Edit existing memory."""
    result = State.core.call_tool(
        "write_memory",
        memory_name=name,
        content=content,
    )
    output_json(result)


@app.command("delete")
def delete_memory(
    name: str = typer.Argument(..., help="Memory name"),
):
    """Delete a memory."""
    result = State.core.call_tool(
        "delete_memory",
        memory_file_name=name,
    )
    output_json(result)
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall