Skip to content

Instantly share code, notes, and snippets.

@chenhunghan
chenhunghan / gist.md
Last active April 15, 2026 19:21
One Prompt to Save 90% Context for Any MCP Server

Local Code Mode for MCP

Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.

MCP isn't dead — but we need to design MCP tools with the context window in mind.

@OmerFarukOruc
OmerFarukOruc / claude.md
Last active June 14, 2026 20:22
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@shun0t
shun0t / deep_self_research.md
Created January 18, 2026 16:39
Sharing a prompt template that turns the Deep Research features of AI chat apps into content generation tools
@massahud
massahud / gemini generated table.md
Last active June 8, 2026 23:04
Illustrious modifiers

💎 Quality & Detail Modifiers (Positive Prompt)

These tags directly influence the perceived quality, detail, and "finish" of the image.

Modifier (Tag) Description
"Magic" Tags (Highest impact for Noobai/Illustrious)
very awa (Noobai Specific) The most powerful tag, trained on the top 5% of aesthetically-rated images.
masterpiece A classic, high-tier tag for high-quality, artistic output.
best quality Similar to masterpiece, strongly pushes for a clean, well-rendered image.
@maddada
maddada / setting-default-editor-for-claude-code.md
Last active May 19, 2026 12:50
Setting Default Editor for Claude Code

To set the default editor in Mac, Linux, Windows:

1. 🖥️ macOS (Default: Zsh)

On a modern macOS system, the default shell is Zsh.

  • File: ~/.zshrc (This file is in your home directory. The ~ is a shortcut for /Users/yourusername).
  • How to Edit:
    1. Open your terminal.
  1. Type nano ~/.zshrc to open the file in a terminal editor.
@ruvnet
ruvnet / memory.md
Last active June 12, 2026 00:59
Claude Memory Template

Claude Memory Template

Copy-Paste Instructions for Optimal AI Interaction

1. Core Identity and Objective

I am [Your Name/Role], focused on:

@xdannyrobertsx
xdannyrobertsx / claude-code-settings-schema.json
Created August 14, 2025 16:48
Claude Code Settings Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Claude Code Settings",
"description": "Configuration schema for Claude Code settings.json files",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema reference for this configuration file"
@wong2
wong2 / claude-code-tools.md
Last active June 19, 2026 00:09
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@Helmi
Helmi / .roomodes
Created April 11, 2025 19:43
Roo Content Army - an agentic approach to create content with Roo Code
{
"customModes": [
{
"name": "🧑‍✈️ Commander",
"slug": "commander",
"roleDefinition": "You are the Commander of the Content Army. You act as the central coordinator for content creation pipelines. Your responsibilities include interacting with the user (for initial requests and mid-pipeline reviews/selections), dynamically planning the workflow based on the briefing output and project context (like style guides and project language), delegating tasks to specialist modes, and managing the state for each content piece by creating and updating task definition files.",
"customInstructions": "As the Commander:\n\n**Core Directives:**\n\n- **Interact with the user in the language they are currently using.** Adapt your responses accordingly.\n- **Internal logic, task definitions, and status reporting should remain in English** for system consistency.\n- **You MUST meticulously track your own token usage and cost.** Before initiating any action that involves significant processing or int
@GuiBibeau
GuiBibeau / 1.txt
Last active August 17, 2025 08:38
Vibe architecting prompts
I want you to refine this brainstorming document into a prompt for a deep research system that will be tasked with writing a technical spike
research document on a software engineering project. The goal of this research is to help guide future agentic coding systems into
having a good understanding of the technical landscape around the software the user wants to create.
<context>
Deep research is a category of product where large language models capable of test time compute are paired with capacities to:
- search the web
- browse documentatin
- read research paper
- further refine their research based on their finding