Skip to content

Instantly share code, notes, and snippets.

View Necmttn's full-sized avatar
🖖
Maker

Neco Necmttn

🖖
Maker
View GitHub Profile
@Necmttn
Necmttn / README.md
Created April 13, 2026 15:00
Claude Code context-gathering bundle: composto skill + 3 codebase agents + /review-all two-phase command

Context-gathering setup for Claude Code

A small bundle that makes Claude Code's review/debug/build workflows sharper without burning tokens on blind file reads.

What's in here

File Type Where it goes
SKILL-composto.md Skill ~/.claude/skills/composto/SKILL.md
agent-codebase-locator.md Agent ~/.claude/agents/codebase-locator.md
@Necmttn
Necmttn / code-analyzer.md
Created April 13, 2026 14:45
Claude Code subagents for context gathering: codebase-locator, codebase-pattern-finder, code-analyzer
name codebase-analyzer
description Analyzes codebase implementation details. Call the codebase-analyzer agent when you need to find detailed information about specific components. As always, the more detailed your request prompt, the better! :)
tools Read, Grep, Glob, LS

You are a specialist at understanding HOW code works. Your job is to analyze implementation details, trace data flow, and explain technical workings with precise file:line references.

Core Responsibilities

@Necmttn
Necmttn / review-phase1.md
Created April 13, 2026 14:43
/review-all Phase 1: parallel context gathering with codebase-locator, pattern-finder, analyzer

/review-all - Phase 1: Context Gathering

Before running reviewers on a diff, gather context the diff alone can't show. Run these three subagents in parallel:

Parallel context subagents

  • codebase-locator - find callers/consumers of changed symbols (integration surface not in the diff). Catches "this edit breaks a caller nobody looked at."

  • codebase-pattern-finder - find existing patterns for what the diff introduces. Catches "Claude reinvented a helper that already exists."

@Necmttn
Necmttn / .env.example
Last active March 19, 2026 09:37
How I Reverse-Engineered Osome and Automated 144 Invoice Uploads
# Copy your Osome cookies here
# Get from: DevTools → Network → any request to my.osome.com → Headers → Cookie
OSOME_COOKIES="your_cookie_string_here"
@Necmttn
Necmttn / turnJSONSchemaToZodSchema.ts
Created September 10, 2023 05:27
turnJSONSchemaToZodSchema.ts
import * as z from "zod";
/**
* This function converts a JSON schema into a Zod schema.
*
* @param schema The JSON schema to be converted. The schema should follow the JSON Schema Draft 7 specification.
*
* Example:
* schema: {
* $schema: "http://json-schema.org/draft-07/schema#",
* title: "Complex Example",
@Necmttn
Necmttn / executer.stream.ts
Created August 30, 2023 11:14
Stream execute openai call including the JSON responses.
import {
createParser,
ParsedEvent,
ReconnectInterval,
} from "eventsource-parser";
import { Procedure } from "./procedure";
import openai, { ChatCompletionRequestMessage } from "@acme/openai";
import _ from "lodash";
export type Message = Omit<ChatCompletionRequestMessage, "role"> & {
@Necmttn
Necmttn / filterGenerator.ts
Created December 20, 2021 08:35
Attempt to making filter generation automated in Anchor / Solana.
export const generateFilter = (filterParams) => {
const IDL_DEFINATION = {
name: "vote",
type: {
kind: "struct",
fields: [
{
name: "proposalId",
type: "u64",
},
@Necmttn
Necmttn / compare sql tables
Created August 13, 2021 19:45
compare_sql_tables.js
const createDisctionaryOfColumns = (tableDefination) => {
return tableDefination.split(',').reduce((prev,column) => {
const part = column.trim().split(/\s+/);
console.log(part)
const cName = part[0];
const type = part[1];
prev[cName]= type;
return prev;
}, {})
}
@Necmttn
Necmttn / action.js
Created February 14, 2019 03:03
Better way of making Redux Ajax actions.
const REQUEST = 'REQUEST'
const SUCCESS = 'SUCCESS'
const FAILURE = 'FAILURE'
function action(type, payload = {}) {
return {type, ...payload}
}
const listJDs = {
request: () => action(ActionTypes.LIST_JDS[REQUEST]),
@Necmttn
Necmttn / logger.js
Created February 13, 2019 06:43
Better CloudWatch Logs.
const winston = require('winston');
const logger = winston.createLogger({
level: 'debug',
// (typeof(process.env.NODE_ENV) === 'string' && process.env.NODE_ENV.startsWith('prod'))
// ? 'info'
// : 'debug',
format: winston.format.combine(
winston.format.timestamp(),
winston.format.splat(),