Skip to content

Instantly share code, notes, and snippets.

View Peng-YM's full-sized avatar
🎯
Focusing

Peng-YM Peng-YM

🎯
Focusing
  • China
View GitHub Profile
@Peng-YM
Peng-YM / lyra.txt
Created September 14, 2025 03:38 — forked from xthezealot/lyra.txt
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@Peng-YM
Peng-YM / default.md
Created June 22, 2025 01:46 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@Peng-YM
Peng-YM / capabilities.txt
Created March 10, 2025 01:17 — forked from jlia0/agent loop
Manus tools and prompts
# Manus AI Assistant Capabilities
## Overview
I am an AI assistant designed to help users with a wide range of tasks using various tools and capabilities. This document provides a more detailed overview of what I can do while respecting proprietary information boundaries.
## General Capabilities
### Information Processing
- Answering questions on diverse topics using available information
- Conducting research through web searches and data analysis
@Peng-YM
Peng-YM / Loon.plugin
Created July 5, 2022 13:53
Sub-Store Dev Configurations
#!name=Sub-Store
#!desc=高级订阅管理工具
#!openUrl=https://sub.store
#!author=Peng-YM
#!homepage=https://github.com/Peng-YM/Sub-Store
#!icon=https://raw.githubusercontent.com/58xinian/icon/master/Sub-Store1.png
[MITM]
hostname=sub.store
@Peng-YM
Peng-YM / gallery.json
Last active February 24, 2023 06:33
QX Task Gallery
@Peng-YM
Peng-YM / MOEADMM.m
Last active April 28, 2020 10:26
MOEAD-MM algorithm implemented in PlatEMO
function MOEADMM(Global)
% <algorithm> <A>
% Multi-modal Multi-objective Evolutionary Algorithm based on Decmoposition
% type --- 1 --- The type of aggregation function
% mu --- 4 --- The size of each sub-population
%% Parameter settings
[type, mu] = Global.ParameterSet(1, 4);
%% Generate the weight vectors
@Peng-YM
Peng-YM / VI.py
Last active March 26, 2020 09:30
Simple Python implemetation of the value iteration algorithm in Renforcement Learning.
import numpy as np
def value_iteration(S, A, P, R, gamma, theta):
'''
Parameters:
S: states. A dictionary containing the name of each state.
A: actions. A dictionary containing the name of each action.
P: transition probabilities. P[previous_state, action, next_state] = probability.
R: reward. R[previous_state, action, next_state] = reward.
gamma: discounting factor.
@Peng-YM
Peng-YM / example.m
Created March 26, 2019 14:54
Export Matlab figure to PDF without margin
h = figure;
plot(1:10);
set(h,'Units','Inches');
pos = get(h,'Position');
set(h,'PaperPositionMode','Auto','PaperUnits','Inches','PaperSize',[pos(3), pos(4)])
print(h,'filename','-dpdf','-r0')
@Peng-YM
Peng-YM / toc.py
Last active June 19, 2018 15:41
Python Script to generate markdown table of content(toc)
import argparse
from typing import Tuple, List
class TOC(object):
def __init__(self, path: str) -> None:
self._path = path
self._buffer: List[str] = []
def add_toc(self):
@Peng-YM
Peng-YM / MST.py
Last active June 18, 2021 02:06
Prim and Kruskal algorithm written in Python
# coding: utf-8
import re
# Class WeightedGraph
class WeightedGraph:
def __init__(self, path):
# open file to initialize the graph
file = open(path, "r")
p = re.compile("\d+")