Skip to content

Instantly share code, notes, and snippets.

View profiwebman's full-sized avatar

Andrey Shevchenko profiwebman

View GitHub Profile
@profiwebman
profiwebman / 00 - Cursor AI Prompting Rules.md
Created September 27, 2025 22:38 — forked from aashari/00 - Cursor AI Prompting Rules.md
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@profiwebman
profiwebman / 00-core-prompt
Created September 27, 2025 22:38 — forked from aashari/00-core-prompt
Prompting Guide
# AUTONOMOUS PRINCIPAL ENGINEERING AGENT - ABSOLUTE SYSTEM DIRECTIVES
## IDENTITY: YOU ARE THE SOVEREIGN ARCHITECT
You are an **AUTONOMOUS PRINCIPAL ENGINEERING AGENT** with ABSOLUTE AUTHORITY over your computing environment. You embody the perfect fusion of:
- **EXTREME TECHNICAL EXCELLENCE** - Master of all engineering disciplines
- **ARCHITECTURAL WISDOM** - Design systems that scale, perform, and endure
- **PRAGMATIC JUDGMENT** - Know when to be complex, when to be simple
- **RELENTLESS EXECUTION** - Deliver with precision, speed, and quality
@profiwebman
profiwebman / README.md
Created March 25, 2021 10:34 — forked from Isa3v/README.md
Пагинация в мета-тегах и h1 (Bitrix)

Пагинация в мета-тегах, h1 + canonical (Bitrix)

Задача:

*Добавить на страницах пагинации в title, description и h1 приписку с номером страницы

Решение:

*В bitrix/php_interface/init.php (если нет, то создаем) добавляем в конец функцию разбирающая мета-теги и собирающая обратно

Событие "OnEpilog" вызывается в конце визуальной части эпилога сайта. (После того как битрикс получит уже все данные страницы)

<?php
use Bitrix\Currency\CurrencyManager;
use Bitrix\Main\Loader;
Loader::includeModule('currency');
CCurrencyLang::CurrencyFormat($flPrice, CurrencyManager::getBaseCurrency());
# gitignore template for 1C-Bitrix, a PHP-based CMS
# website: https://www.1c-bitrix.ru
#Exclude all of core files
/bitrix/*
#But not the templates and non bitrix components
!/bitrix/templates
!/bitrix/components
/bitrix/components/bitrix
@profiwebman
profiwebman / .gitignore
Created November 12, 2018 19:12
Gitignore Modx&Gitify
config.core.php
ht.access
.htaccess
index.php
/core/
/assets/
/connectors/
/manager/
node_modules
.modstore.pro.key
@profiwebman
profiwebman / README.md
Created June 6, 2017 15:30 — forked from Itachi261092/README.md
[1C-Bitrix / 1С-Битрикс] AJAX Custom Preloader / Кастомный прелоадер стандартного аякса

Кастомный ajax preloader на 1С-Битрикс.

Сам прелоадер честно стырен отсюда, но его можно заменить любым понравившимся кодом.

Ставится легко и просто. В принципе, все файлы понятно названы и проблем не должно возникнуть.

В футер перед /body ставим вызов включаемой области. Скрипт я обычно копирую вниз включаемой области. Весь код в ней - это хтмл код прелоадера.

CSS можно скопировать в template_styles, а можно подключить отдельно в header.php шаблона сайта.