Skip to content

code-yeongyu/oh-my-openagent / packages/shared-skills/skills/ast-grep

ast-grep

Unverified

Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.

Security report

Unverified

Static analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.

Commit
1754bcd63cac51b8868eebb05a9d5ea67a52e24e
Content hash
c1fddb39e2085eab6032d57ba5f7b9728950001fbc96ecffbda5346b9e2b92ed
Scanned
2026-11-17
Scanner version
skillxone-scan-1.0.0
Policy version
0.1-draft
Decision
1 open medium finding to review.
Verification expires
Not applicable

Findings (1 medium, 4 low, 3 info)

  • mediumCMD-PERSISTENCEreferences/cli.md:196

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    sg completions bash >> ~/.bashrc

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • lowINT-MISSING-LICENSE

    Neither the skill nor its repository states a license, so the terms of use are unclear.

    Suggested fix: Add a LICENSE file to the repository or a `license` field to SKILL.md.

    Report as false positive

  • A command runs with administrator privileges.

    sudo port install ast-grep # MacPorts

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    sudo mv /tmp/ast-grep/ast-grep /usr/local/bin/sg

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • A command runs with administrator privileges.

    sudo chmod +x /usr/local/bin/sg

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTinstall.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/ast_grep_helper.py:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env python3

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTtests/smoke.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env bash

    Suggested fix: None required. Informational.

    Report as false positive

Checks run

  • prompt-injection
  • dangerous-commands
  • credentials
  • network
  • file-access
  • integrity

Checks skipped

  • dependencies: No dependency manifest in the skill directory.
  • gitleaks: gitleaks is not installed on this host.
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