Skip to content

Instantly share code, notes, and snippets.

View onigetoc's full-sized avatar

Gino onigetoc

View GitHub Profile

Set up these as real Codex lifecycle hooks by following the official documentation: https://learn.chatgpt.com/docs/hooks

Important: use ~/.codex/hooks.json and a PreToolUse command hook. Do not implement this only as a ~/.codex/rules/*.rules execution-policy file.

First inspect any existing hooks and preserve them. Then:

  1. Create or merge ~/.codex/hooks.json with a PreToolUse matcher for Bash.
  2. Create ~/.codex/hooks/destructive_commands.py.
  3. The script must read the hook JSON payload from stdin and inspect tool_input.command.
["0o", "0s", "3a", "3b", "3d", "6b", "6o", "a", "a1", "a2", "a3", "a4", "ab", "able", "about", "above", "abst", "ac", "accordance", "according", "accordingly", "across", "act", "actually", "ad", "added", "adj", "ae", "af", "affected", "affecting", "affects", "after", "afterwards", "ag", "again", "against", "ah", "ain", "ain't", "aj", "al", "all", "allow", "allows", "almost", "alone", "along", "already", "also", "although", "always", "am", "among", "amongst", "amoungst", "amount", "an", "and", "announce", "another", "any", "anybody", "anyhow", "anymore", "anyone", "anything", "anyway", "anyways", "anywhere", "ao", "ap", "apart", "apparently", "appear", "appreciate", "appropriate", "approximately", "ar", "are", "aren", "arent", "aren't", "arise", "around", "as", "a's", "aside", "ask", "asking", "associated", "at", "au", "auth", "av", "available", "aw", "away", "awfully", "ax", "ay", "az", "b", "b1", "b2", "b3", "ba", "back", "bc", "bd", "be", "became", "because", "become", "becomes", "becoming", "been", "before
@onigetoc
onigetoc / 2025-12-17-Claude Code Skills Structure and Usage Guide.md
Created June 19, 2026 15:50 — forked from mellanon/2025-12-17-Claude Code Skills Structure and Usage Guide.md
Claude Code Skills Structure and Usage Guide - Best practices for skill development, activation patterns, and optimization strategies

generation_date: 2025-12-17 10:44 received_date: 2025-12-17 10:44 updated_date: 2025-12-24 tags:

  • git/track
  • scope/work
  • source/telegram
  • status/resource
  • topic/ai/claude
@onigetoc
onigetoc / obsidian-web-clipper.js
Created June 11, 2026 07:48 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */

Opencode plugin development guide

Generated with LLM assistance on 2 Nov 2025 with minimal human verification.

Overview

Opencode plugins extend the functionality of the Opencode AI assistant by allowing you to add custom tools, authentication providers, event handlers, and hooks into the core system. This guide covers how to create, configure, and distribute plugins.

Source files:

@onigetoc
onigetoc / llm-wiki.md
Created April 6, 2026 06:32 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@onigetoc
onigetoc / agentic.md
Created January 12, 2026 09:19 — forked from ruvnet/agentic.md
agentic.js: A modern, secure, and scalable JavaScript/TypeScript library designed for Deno and Node.js environments. It provides a unified interface to interact with multiple AI language model providers like OpenAI and Anthropic. Incorporating agentic capabilities through LangChain.js integration, agentic.js allows for advanced AI applications, …

💍 agentic.js

One Ai library to rule them all

agentic.js is a modern, secure, and scalable JavaScript/TypeScript library designed for Deno and Node.js environments.

It provides a unified interface to interact with multiple AI language model providers like OpenAI and Anthropic. Incorporating agentic capabilities through LangChain.js integration, agentic.js allows for advanced AI applications, including custom tool creation and dynamic agent architectures.

The library supports multiple models and providers using dynamic configurations and offers optional support for PostgreSQL/Supabase as a database backend for caching and data storage.

Key Features

<context>
# Overview
[Provide a high-level overview of your product here. Explain what problem it solves, who it's for, and why it's valuable.]
# Core Features
[List and describe the main features of your product. For each feature, include:
- What it does
- Why it's important
- How it works at a high level]
@onigetoc
onigetoc / cursor-agent-system-prompt.txt
Created April 23, 2025 04:37 — forked from sshh12/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@onigetoc
onigetoc / mcp-install.ps1
Last active March 30, 2025 01:48 — forked from evalstate/mcp-install.ps1
Powershell Script to install a Node packaged MCP Server for Claude Desktop
# from reddit: https://www.reddit.com/r/ClaudeAI/comments/1hciaxk/solved_installing_mcp_servers_on_windows_with/
param(
[Parameter(Mandatory=$true)]
[string]$PackageName
)
Write-Host "Starting installation process for $PackageName..."
# Check Claude Desktop folder
Write-Host "Checking Claude Desktop installation..."