Skip to content

Instantly share code, notes, and snippets.

View KBPsystem777's full-sized avatar
πŸ’­
Try getMedixAI.com

Koleen BP KBPsystem777

πŸ’­
Try getMedixAI.com
View GitHub Profile
@KBPsystem777
KBPsystem777 / PermitRegistry.sol
Last active February 26, 2026 00:07
DICT Activity: Reading a Smart Contract β€” Permit Registry
// This contract stores and manages building permits
contract PermitRegistry {
// STATE VARIABLES: Data this contract remembers
address public officer; // Who is the authorized officer?
uint public permitCount; // How many permits issued?
// A 'struct' is a record template (like a government form)
struct Permit {
string applicantName; // Text: applicant name
@KBPsystem777
KBPsystem777 / you_couldve_invented_openclaw.md
Created February 13, 2026 12:11 — forked from dabit3/you_couldve_invented_openclaw.md
You Could've Invented OpenClaw

What makes OpenClaw powerful is surprisingly simple: it's a gateway that connects an AI agent to your messaging apps, gives it tools to interact with your computer, and lets it remember who you are across conversations.

The complexity comes from handling multiple channels simultaneously, managing persistent sessions, coordinating multiple agents, and making the whole thing reliable enough to run 24/7 on your machine.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own.

First, let's establish the problem

@KBPsystem777
KBPsystem777 / MedixAI_Prompt.md
Created July 27, 2025 07:10
MedixAI's OpenSource Prompt for Medical suggestions

You are MediXAI, a helpful medical AI assistant for users in the Philippines. You provide preliminary medical guidance and information, but you MUST:

  1. Always emphasize that your advice is not a substitute for professional medical care
  2. Encourage users to consult with licensed healthcare providers
  3. For emergencies, remind users to call 911 or go to the nearest hospital immediately
  4. Be empathetic and supportive while being medically accurate
  5. Ask relevant follow-up questions to better understand symptoms
  6. Provide general health education when appropriate
  7. Always end serious consultations by recommending they see a doctor
  8. Be culturally sensitive to Filipino healthcare practices and terminology

Universal Copilot Instructions for Fullstack, AI, and Blockchain Development

Project Context

  • You are assisting a fullstack developer working across the JavaScript ecosystem, AI/ML, and blockchain technologies.
  • The codebase may include frontend, backend, smart contracts, data science scripts, or infrastructure code.
  • Always generate code and suggestions that are language- and stack-agnostic unless otherwise specified.
  • Help and push me to be better each day and achieve the goal of being the top 1% of the top 1% of developers, engineers and tech founders/builders.

@KBPsystem777
KBPsystem777 / abra.json
Created May 4, 2025 04:38
Province of Abra's Municipalities and Barangays
{
"municipality_list": {
"BANGUED": {
"barangay_list": [
"AGTANGAO",
"ANGAD",
"BANGBANGAR",
"BA\u00d1ACAO",
"CABULOAN",
"CALABA",
@KBPsystem777
KBPsystem777 / rptSchema.js
Last active March 27, 2025 15:14
RPT_Form_Schema
export const rptForm = {
book_number: 1,
arp_number: "000-2323-",
property_identification_number: "000-2323-",
owner: "koleen",
owners_address: "1234 street",
administrator: "admin",
admin_and_beneficiary_address: "1234 street",
co_owner: "co-owner",
number_and_street: "1234 street",
@KBPsystem777
KBPsystem777 / copilot-instructions.md
Created March 22, 2025 05:31
My personal Copilot Instructions setup for everyday web development activities

πŸ‘‘ Core Philosophy

  • βœ… Write ultra-clean, testable, reusable code
  • βœ… Follow DRY (Don’t Repeat Yourself) at all times
  • βœ… Predict bugs & optimize for performance
  • βœ… Promote code clarity & maintainability
  • βœ… Ensure 90%+ unit test pass rate
  • βœ… Encourage documentation with emojis 😎
  • βœ… Check for existing components before suggesting new ones
  • βœ… Use Tailwind + React-TS with pnpm/npm (government-grade software)
@KBPsystem777
KBPsystem777 / ClassmateConnect.sol
Created February 11, 2025 04:09
Classmate Connect Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
/// @title ClassmateConnect - Parent contract for managing student profiles
contract ClassmateConnect {
struct Profile {
string nickname;
string bio;
address studentAddress;
}
@KBPsystem777
KBPsystem777 / StudentContract.sol
Last active April 5, 2025 05:05
Sonic CodeCamp Activity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
/// @title Interface for ClassmateConnect
interface IClassmateConnect {
function registerProfile(
address _studentAddress,
string memory _nickname,
string memory _bio
) external;
@KBPsystem777
KBPsystem777 / MarketplaceV2.sol
Created November 17, 2024 16:49
ManageLife's Marketplace V2 Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ManageLife.sol";
contract Marketplace is ReentrancyGuard, Pausable, Ownable {