Skip to content

Instantly share code, notes, and snippets.

@zhuixinjian
zhuixinjian / 00 - Cursor AI Prompting Rules.md
Created February 12, 2026 07:43 — 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

@zhuixinjian
zhuixinjian / delay.js
Created June 30, 2020 07:00 — forked from eteeselink/delay.js
ES7 async/await version of setTimeout
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
async function something() {
console.log("this might take some time....");
await delay(5000);
console.log("done!")
}
something();
{"lastUpload":"2020-08-06T08:07:38.614Z","extensionVersion":"v3.4.3"}
@zhuixinjian
zhuixinjian / search suggestion api
Created January 19, 2016 02:56
search suggestion api
http://sugg.search.yahoo.net/sg/?output=jsonp&nresults=10&command=%s
http://sugg.search.yahoo.net/sg/?output=json&nresults=10&command=%
http://sugg.search.yahoo.net/sg/?output=xml&nresults=10&command=%s
http://api.bing.com/osjson.aspx?query=%s
http://google.com/complete/search?output=xml&q=%s
http://sugg.search.yahoo.net/sg/?output=jsonp&nresults=10&command=django
http://sugg.search.yahoo.net/sg/?output=json&nresults=10&command=django
http://sugg.search.yahoo.net/sg/?output=xml&nresults=10&command=django
@zhuixinjian
zhuixinjian / meta-tags.md
Last active September 11, 2015 08:37 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@zhuixinjian
zhuixinjian / post.html
Created August 4, 2015 14:44
post.html
<article class="post-content">
{{ content }}
{% assign category = site.data.categories[page.category] %}
<p id="post-meta">Posted
{% if category == null %}
{% assign category = page.category %}
{% endif %}
in <code><a href="/blog/category/#{{ page.category }}">{{ category }}</a></code>
@zhuixinjian
zhuixinjian / tag.html
Created August 4, 2015 14:40
tag.html
---
layout: default
title: Tags
permalink: /blog/tags/
---
<header class="post-header">
<h1>Tags</h1>
</header>
@zhuixinjian
zhuixinjian / tag.html
Created August 4, 2015 03:45
jekyll tags
{% for post in post_info[1] %}
{% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %}
<li>{{ post.date | date: "%B %d, %Y" }}: <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
{% if page.css %}{{ page.css | stylesheet }}{% endif %}
{% if page.style %}{{ page.style }}{% endif %}