Skip to content

Instantly share code, notes, and snippets.

@jlia0
jlia0 / agent loop
Last active April 20, 2025 03:43
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
flowchart TD
    %% Main Entry Point and Initialization
    Start([Application Start]) --> ParseArgs[Parse Command Line Arguments]
    ParseArgs --> CheckStdin{Check stdin}
    CheckStdin -->|Input Piped| ProcessPiped[Process Piped Input]
    CheckStdin -->|Interactive Mode| CheckAuth{Authentication Status}
    
    %% Authentication Flow
    CheckAuth -->|Not Authenticated| OAuthFlow[OAuth Authentication]
@leehanchung
leehanchung / system_prompts.mjs
Created March 8, 2025 08:33
claude code system prompts
function CQ2() {
return `You are ${w4}, Anthropic's official CLI for Claude.`
}
async function fR() {
return [
`You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse.
IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).
@leehanchung
leehanchung / easter_egg.mjs
Created March 8, 2025 08:07
claude code sticker easter egg
var SE2 = 'Sends the user swag stickers with love from Anthropic.',
LE2 = `This tool should be used whenever a user expresses interest in receiving Anthropic or Claude stickers, swag, or merchandise. When triggered, it will display a shipping form for the user to enter their mailing address and contact details. Once submitted, Anthropic will process the request and ship stickers to the provided address.
Common trigger phrases to watch for:
- "Can I get some Anthropic stickers please?"
- "How do I get Anthropic swag?"
- "I'd love some Claude stickers"
- "Where can I get merchandise?"
- Any mention of wanting stickers or swag
@leehanchung
leehanchung / cli.mjs
Last active April 5, 2025 08:19
formatted claude code cli.mjs
This file has been truncated, but you can view the full file.
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning --enable-source-maps
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
@kleneway
kleneway / gist:41c57fca185a29612d4aa5430e50e74e
Last active April 5, 2025 06:18
Sample Prompts for converting a video to stories and to add notes to a task list
For generating stories and tasks from a video, use the following instructions:
<INSTRUCTIONS>
Act as a world-class technical product manager. Your goal is to review customer feedback and break it down into clear stories
and discrete tasks for a development team to work on. Group your feedback items as sprint tasks, organized in high-level topics
and 1-point very detailed stories. Your response to any video should contain enough detail for an offshore development team
to implement the fix without having access to this video. Your response should be in the format of a markdown file with
numbered stories and empty checkboxes next to each story and task.
</INSTRUCTIONS>
For refining the stories in the cursor-tasks file, use the following instructions:
@ruvnet
ruvnet / 1-readme.md
Created February 4, 2025 13:46
Deep Research Hack Scripts

I will create a fully implemented ethical cybersecurity analysis and penetration testing framework, including files, folders, and installation instructions. This will cover:

  • Legal and ethical penetration testing guidelines
  • Best practices for securing applications, including Discord bots
  • Installation scripts and configurations for security tools
  • Step-by-step setup for an ethical hacking lab
  • Guidelines for responsible disclosure and compliance with cybersecurity laws

I'll provide the necessary files and folder structures for easy deployment. I'll update you once it's ready.

@disler
disler / README.md
Last active April 5, 2025 14:30
Prompt Chaining with QwQ, Qwen, o1-mini, Ollama, and LLM

Prompt Chaining with QwQ, Qwen, o1-mini, Ollama, and LLM

Here we explore prompt chaining with local reasoning models in combination with base models. With shockingly powerful local models like QwQ and Qwen, we can build some powerful prompt chains that let us tap into their capabilities in a immediately useful, local, private, AND free way.

Explore the idea of building prompt chains where the first is a powerful reasoning model that generates a response, and then use a base model to extract the response.

Play with the prompts and models to see what works best for your use cases. Use the o1 series to see how qwq compares.

Setup

  • Bun (to run bun run chain.ts ...)
@yamalight
yamalight / claude_3.5_sonnet_artifacts.xml
Created June 24, 2024 18:46 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@xRyul
xRyul / gist:c127482641144bb0263060cb729ca1be
Created February 22, 2024 21:30
Automated Mermaid Graph from Backlinks N levels deep - ObsidianMD
```dataviewjs
// If too many connections are found, mermaid wont render them.
// Thus, we have to limit either how deep we go via "var specifiedDepth = X;"
// Or, we can reduce amount of links shown "maxLinks = X"
var inlinks = [...new Set(dv.current().file.inlinks.map(link => link.path.split('/').pop().replace('.md', '')))];
var outlinks = [...new Set(dv.current().file.outlinks.map(link => link.path.split('/').pop().replace('.md', '')))];
var graph = [];
var classList = [];
var nodeNames = {};