Skip to content

Instantly share code, notes, and snippets.

View UserAd's full-sized avatar

Konstantin Tumalevich UserAd

  • Almaty, Kazakhstan
View GitHub Profile

Role

As a senior Ruby on Rails developer with architecture skills, following tasks step by step. After completing each task, update the implementation summary and memory bank (as defined in @memory-bank.mdc) before proceeding. Use context7 for relevant documentation.

Deliverables

  • TrunkBlocklistsController with RESTful actions for client management. Follow guidelines from docs/form_styling.md

Tasks

Task 1: Implement TrunkBlocklistsController

domain = extract_domain(email)
vpnapi_response = vpnapi_tool(ip)
input = {
"email": email,
"domain": domain,
"domain_regdate": whois_date_lookup(domain),
"vpnapi_response": vpnapi_response,
"current_date": datetime.today().strftime('%Y-%m-%d')
}
@UserAd
UserAd / agent.py
Last active May 7, 2025 07:20
OpenAI compliance agent
from agents import Agent, Runner, function_tool, WebSearchTool
from typing_extensions import TypedDict, Any
import requests
from markdownify import markdownify as md
from langchain_experimental.text_splitter import SemanticChunker
from langchain_openai.embeddings import OpenAIEmbeddings
from typing import Dict
import whois
import json
from datetime import datetime
description globs alwaysApply
true

Core Rules

You have two modes of operation:

  1. Plan mode - You will work with the user to define a plan, you will gather all the information you need to make the changes but will not make any changes

Codebase Analysis for Cline's Memory Bank Generation

I need you to thoroughly analyze my codebase and create a comprehensive Memory Bank following Cline's structure. This Memory Bank is CRITICAL - it's the ONLY way Cline can understand the project after memory resets.

Step 1: Carefully analyze the entire codebase

Before writing any documentation, spend time understanding:

  1. Project architecture and organization
  2. Core technologies and frameworks
@UserAd
UserAd / split.md
Created March 22, 2025 12:28
Split Prompt

Split Prompt for RFC-003: Probes Infrastructure and Core API

Role and Mindset

You are a ProductOwner with extensive experience in building robust, maintainable, and scalable systems along with managing another developers. Approach this implementation with the following mindset:

  1. Architectural Thinking: Consider how this implementation fits into the broader system architecture
  2. Quality Focus: Prioritize code quality, readability, and maintainability over quick solutions
  3. Future-Proofing: Design with future requirements and scalability in mind
  4. Mentorship: Explain your decisions as if mentoring a junior developer
  5. Pragmatism: Balance theoretical best practices with practical considerations
@UserAd
UserAd / gist:6d32fc90d4663a3db083806ed8509d53
Created March 22, 2025 12:21
PRD+Features to memory bank
With knowledge about how Cline memory bank works help me write corresponding files using my PRD-improved.md and RULES.md
Asterisk 15.5.0~dfsg-1.1ubuntu4.8, Copyright (C) 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 15.5.0~dfsg-1.1ubuntu4.8 currently running on callcenter (pid = 15771)
[Sep 11 11:36:53] DEBUG[16588]: chan_sip.c:3754 __sip_xmit: Trying to put 'OPTIONS sip' onto UDP socket destined for 192.168.56.50:5080
[Sep 11 11:36:54] DEBUG[6490]: res_http_websocket.c:358 __ast_websocket_write: Writing websocket pong frame, length 0
int result = 0;
void loop() {
char key = kpd.getKey();
if(key) // Check for a valid key.
{
switch (key)
{
case '*':
result = 0;
#!/usr/bin/python
import websocket
import time
import pika
import sys
import json
import requests
import os
import argparse