Skip to content

Instantly share code, notes, and snippets.

View wootsbot's full-sized avatar
:copilot:
Doing this 'n' that.

jlca wootsbot

:copilot:
Doing this 'n' that.
View GitHub Profile
@wootsbot
wootsbot / gist:61759673068634565c3ad9720759e4db
Created June 22, 2026 17:04
prompt-engineer-claude-code
---
name: prompt-engineer-claude-code
description: >
Diagnoses and improves prompts directed at Claude Code and coding agents.
Use when the user wants to pass an instruction to Claude Code or any coding
AI agent and the prompt is incomplete, disorganized, or not producing the
expected result. Also use when the user says "help me improve this prompt",
"how do I tell Claude Code to...", "I want the agent to do X", or pastes
an informal prose prompt and asks to structure it better. Applies to
debugging, new features, refactors, architecture decisions, and
@wootsbot
wootsbot / CLAUDE.md
Created July 23, 2025 02:03 — forked from EvanBacon/CLAUDE.md
Expo Router CLAUDE.md file.

Architecture

  • Website: Expo Router website with Tailwind.
  • Native app: Expo Router app with CNG.
  • Backend: Expo API routes WinterTC-compliant. Routes are in src/app/api/ directory. API routes use +api.ts suffix (chat+api.ts).
  • Secrets: Use .env files and API routes for secret management. Never use EXPO_PUBLIC_ prefix for sensitive data.

Code Style

  • Use TypeScript whenever possible.
@wootsbot
wootsbot / coding-agent.py
Created March 19, 2025 14:41 — forked from Madhav-MKNC/coding-agent.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@wootsbot
wootsbot / AppDelegate.mm
Created July 4, 2024 15:44 — forked from juanchoperezj/AppDelegate.mm
Use RocketSim Network Monitoring with a React Native Project (Not Expo)
// imports...
@interface RocketSimLoader : NSObject
- (void)loadRocketSimConnect;
@end
@implementation RocketSimLoader
@wootsbot
wootsbot / google-sign-in.tsx
Created September 29, 2023 06:37 — forked from sonipranjal/google-sign-in.tsx
Supabase + Expo + Google Sign In
// go to supabase dashboard -> into auth -> url config -> put the Redirect URLs as [your-scheme]://google-auth
import * as WebBrowser from "expo-web-browser";
WebBrowser.maybeCompleteAuthSession();
const extractParamsFromUrl = (url: string) => {
const parsedUrl = new URL(url);
const params = parsedUrl.searchParams; // Using searchParams instead of splitting on "#"
{
"name": "gbm-el-patron-web",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@amplitude/ua-parser-js": {
"version": "0.7.20",
"resolved": "https://gbmcode.pkgs.visualstudio.com/_packaging/GBMNuget/npm/registry/@amplitude/ua-parser-js/-/ua-parser-js-0.7.20.tgz",
"integrity": "sha1-FWUvjMT+5y2WKl8hAc/ebzyOh7g="
@wootsbot
wootsbot / contribuye.rst
Created June 6, 2019 03:20
Publica tu artículo en codea.com.mx

Publica tu artículo en codea.com.mx

Clona el repositorio y prepara tu branch

$ git clone https://github.com/<mi-usuario-gitlab>/codea.git
$ cd codea/
import React from 'react'
import {InputText} from 'primereact/inputtext';
import {Button} from 'primereact/button';
class example extends React.Component {
this.state = {}
inputOnChangeTex(event) {
this.setState({[event.target.id]: event.target.value});
@wootsbot
wootsbot / tab-trigger.js
Created July 22, 2017 01:55 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{