Skip to content

Rudra-ravi/frida-skills / frida-agent-builder

frida-agent-builder

Verified

Build maintainable Frida agent projects with TypeScript, frida-compile, RPC exports, helpers, logging, version checks, and multi-hook organization.

FileKindSize
SKILL.mdskill md1.5 KB
agents/openai.yamlconfig192 B
references/agent-patterns.mdmarkdown763 B
scripts/scaffold-frida-agent.pyexecutablescript2.0 KB

scripts/scaffold-frida-agent.py

View on GitHub
#!/usr/bin/env python3
"""Create a small TypeScript Frida agent skeleton."""

from __future__ import annotations

import argparse
import json
from pathlib import Path


def write(path: Path, content: str) -> None:
    path.parent.mkdir(parents=True, exist_ok=True)
    if path.exists():
        raise SystemExit(f"Refusing to overwrite existing file: {path}")
    path.write_text(content, encoding="utf-8")


def main() -> None:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("output", type=Path)
    parser.add_argument("--java", action="store_true", help="Include frida-java-bridge dependency note/package.")
    args = parser.parse_args()

    root = args.output
    root.mkdir(parents=True, exist_ok=True)

    deps = {"@types/frida-gum": "latest", "frida-compile": "latest", "typescript": "latest"}
    if args.java:
        deps["frida-java-bridge"] = "latest"

    package = {
        "private": True,
        "type": "module",
        "scripts": {
            "build": "frida-compile src/index.ts -o dist/agent.js",
            "check": "tsc --noEmit",
        },
        "devDependencies": deps,
    }

    write(root / "package.json", json.dumps(package, indent=2) + "\n")
    write(
        root / "tsconfig.json",
        """{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "strict": true,
    "types": ["frida-gum"]
  },
  "include": ["src/**/*.ts"]
}
""",
    )
    write(
        root / "src" / "log.ts",
        """export function log(tag: string, data: unknown = null): void {
  console.log(JSON.stringify({ tag, data }));
}
""",
    )
    write(
        root / "src" / "index.ts",
        """import { log } from "./log";

log("agent.loaded", {
  platform: Process.platform,
  arch: Process.arch,
  pointerSize: Process.pointerSize,
});

rpc.exports = {
  ping() {
    return "pong";
  },
};
""",
    )
    write(root / "dist" / ".gitkeep", "")
    print(f"Created Frida agent skeleton at {root}")


if __name__ == "__main__":
    main()
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 CodeCodexVerifiedInstall
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