Communitygithub.com

bg-szy/TOP-SKILLS

Constrói fuzzers personalizados com LibAFL, a biblioteca modular de fuzzing em Rust. Abrange a composição de observadores, feedbacks, mutadores, escalonadores e executores em um fuzzer para alvos que as ferramentas padrão não atendem.

O que é TOP-SKILLS?

Esta skill capacita desenvolvedores e pesquisadores a criar fuzzers sob medida usando LibAFL, uma biblioteca modular de fuzzing escrita em Rust. Diferente de fuzzers tradicionais como libFuzzer e AFL++, o LibAFL oferece componentes totalmente customizáveis (observadores, feedbacks, mutadores, escalonadores e executores) que podem ser compostos para construir soluções de fuzzing especializadas. A skill ensina dois modos de uso principais: como substituto direto para libFuzzer (compatível com harnesses existentes) ou como uma biblioteca Rust para construir fuzzers personalizados do zero. Ela abrange desde a instalação e compilação até técnicas avançadas como fuzzing com dicionários, deduplicação de crashes, tuning de desempenho e exemplos reais (como fuzzing de libpng). É ideal para cenários onde libFuzzer e AFL++ não oferecem controle suficiente, como arquiteturas não suportadas, estratégias de mutação customizadas ou implementação de ideias de pesquisa inovadoras. A documentação inclui guias detalhados, exemplos de código e configuração para ambientes multi-core e TUI.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bg-szy/TOP-SKILLS/tree/HEAD/skills/skills/libafl

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

LibAFL

O LibAFL é uma biblioteca modular de fuzzing que implementa recursos de fuzzers baseados em AFL, como o AFL++. Diferente de fuzzers tradicionais, o LibAFL oferece toda a funcionalidade de forma modular e personalizável como uma biblioteca Rust. Ele pode ser usado como substituto direto do libFuzzer ou como uma biblioteca para construir fuzzers personalizados do zero.

Quando Usar

FuzzerMelhor ParaComplexidade
libFuzzerConfiguração rápida, single-threadedBaixa
AFL++Multi-core, uso geralMédia
LibAFLFuzzers personalizados, recursos avançados, pesquisaAlta

Escolha LibAFL quando:

  • Você precisar de estratégias de mutação ou mecanismos de feedback personalizados
  • Fuzzers padrão não suportam sua arquitetura alvo
  • Quiser implementar técnicas de fuzzing inovadoras
  • Precisar de controle refinado sobre os componentes de fuzzing
  • Estiver realizando pesquisa em fuzzing

Início Rápido

O LibAFL pode ser usado como substituto direto do libFuzzer com configuração mínima:

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
    // Chame seu código com os dados fornecidos pelo fuzzer
    my_function(data, size);
    return 0;
}

Construa a camada de compatibilidade com libFuzzer do LibAFL:

git clone https://github.com/AFLplusplus/LibAFL
cd LibAFL/libafl_libfuzzer_runtime
./build.sh

Compile e execute:

clang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz
./fuzz corpus/

Instalação

Pré-requisitos

  • Clang/LLVM 15-18
  • Rust (via rustup)
  • Dependências adicionais do sistema

Linux/macOS

Instale o Clang:

apt install clang

Ou instale uma versão específica via apt.llvm.org:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 15

Configure o ambiente para Rust:

export RUSTFLAGS="-C linker=/usr/bin/clang-15"
export CC="clang-15"
export CXX="clang++-15"

Instale Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Instale dependências adicionais:

apt install libssl-dev pkg-config

Para modo de compatibilidade com libFuzzer, instale o Rust nightly:

rustup toolchain install nightly --component llvm-tools

Verificação

Construa o LibAFL para verificar a instalação:

cd LibAFL/libafl_libfuzzer_runtime
./build.sh
# Deve produzir libFuzzer.a

Escrevendo um Harness

Os harnesses do LibAFL seguem o mesmo padrão do libFuzzer quando usados no modo de substituição direta:

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
    // Código do alvo de fuzzing aqui
    return 0;
}

Ao construir fuzzers personalizados com LibAFL como biblioteca Rust, a lógica do harness é integrada diretamente no fuzzer. Veja a seção "Escrevendo um Fuzzer Personalizado" abaixo para o padrão completo.

Veja Também: Para técnicas detalhadas de escrita de harnesses, veja a skill de técnica harness-writing.

Modos de Uso

O LibAFL suporta dois modos principais de uso:

1. Substituto Direto do libFuzzer

Use o LibAFL como substituto do libFuzzer com harnesses existentes.

Compilação:

clang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz

Execução:

./fuzz corpus/

Recomendado para campanhas longas:

./fuzz -fork=1 -ignore_crashes=1 corpus/

2. Fuzzer Personalizado como Biblioteca Rust

Construa um fuzzer totalmente personalizado usando componentes do LibAFL.

Crie o projeto:

cargo init --lib my_fuzzer
cd my_fuzzer
cargo add [email protected] [email protected] [email protected] [email protected] \
  --features "[email protected]/libfuzzer,[email protected]/sancov_pcguard_hitcounts"

Configure o Cargo.toml:

[lib]
crate-type = ["staticlib"]

Escrevendo um Fuzzer Personalizado

Veja Também: Para técnicas detalhadas de escrita de harnesses, padrões para lidar com entradas complexas, e estratégias avançadas, veja a skill de técnica fuzz-harness-writing.

Componentes do Fuzzer

Um fuzzer LibAFL consiste em componentes modulares:

  1. Observadores - Coletam feedback da execução (cobertura, tempo)
  2. Feedback - Determinam se as entradas são interessantes
  3. Objetivo - Definem metas de fuzzing (crashs, timeouts)
  4. Estado - Mantêm corpus e metadados
  5. Mutadores - Geram novas entradas
  6. Escalonador - Selecionam quais entradas sofrerão mutação
  7. Executor - Executa o alvo com as entradas

Estrutura Básica do Fuzzer

use libafl::prelude::*;
use libafl_bolts::prelude::*;
use libafl_targets::{libfuzzer_test_one_input, std_edges_map_observer};

#[no_mangle]
pub extern "C" fn libafl_main() {
    let mut run_client = |state: Option<_>, mut restarting_mgr, _core_id| {
        // 1. Configurar observadores
        let edges_observer = HitcountsMapObserver::new(
            unsafe { std_edges_map_observer("edges") }
        ).track_indices();
        let time_observer = TimeObserver::new("time");

        // 2. Definir feedback
        let mut feedback = feedback_or!(
            MaxMapFeedback::new(&edges_observer),
            TimeFeedback::new(&time_observer)
        );

        // 3. Definir objetivo
        let mut objective = feedback_or_fast!(
            CrashFeedback::new(),
            TimeoutFeedback::new()
        );

        // 4. Criar ou restaurar estado
        let mut state = state.unwrap_or_else(|| {
            StdState::new(
                StdRand::new(),
                InMemoryCorpus::new(),
                OnDiskCorpus::new(&output_dir).unwrap(),
                &mut feedback,
                &mut objective,
            ).unwrap()
        });

        // 5. Configurar mutador
        let mutator = StdScheduledMutator::new(havoc_mutations());
        let mut stages = tuple_list!(StdMutationalStage::new(mutator));

        // 6. Configurar escalonador
        let scheduler = IndexesLenTimeMinimizerScheduler::new(
            &edges_observer,
            QueueScheduler::new()
        );

        // 7. Criar fuzzer
        let mut fuzzer = StdFuzzer::new(scheduler, feedback, objective);

        // 8. Definir harness
        let mut harness = |input: &BytesInput| {
            let buf = input.target_bytes().as_slice();
            libfuzzer_test_one_input(buf);
            ExitKind::Ok
        };

        // 9. Configurar executor
        let mut executor = InProcessExecutor::with_timeout(
            &mut harness,
            tuple_list!(edges_observer, time_observer),
            &mut fuzzer,
            &mut state,
            &mut restarting_mgr,
            timeout,
        )?;

        // 10. Carregar entradas iniciais
        if state.must_load_initial_inputs() {
            state.load_initial_inputs(
                &mut fuzzer,
                &mut executor,
                &mut restarting_mgr,
                &input_dir
            )?;
        }

        // 11. Iniciar fuzzing
        fuzzer.fuzz_loop(&mut stages, &mut executor, &mut state, &mut restarting_mgr)?;
        Ok(())
    };

    // Lançar fuzzer
    Launcher::builder()
        .run_client(&mut run_client)
        .cores(&cores)
        .build()
        .launch()
        .unwrap();
}

Compilação

Modo Verboso

Especifique manualmente todas as flags de instrumentação:

clang++-15 -DNO_MAIN -g -O2 \
  -fsanitize-coverage=trace-pc-guard \
  -fsanitize=address \
  -Wl,--whole-archive target/release/libmy_fuzzer.a -Wl,--no-whole-archive \
  main.cc harness.cc -o fuzz

Wrapper do Compilador (Recomendado)

Crie um wrapper de compilador LibAFL para lidar com a instrumentação automaticamente.

Crie src/bin/libafl_cc.rs:

use libafl_cc::{ClangWrapper, CompilerWrapper, Configuration, ToolWrapper};

pub fn main() {
    let args: Vec<String> = env::args().collect();
    let mut cc = ClangWrapper::new();
    cc.cpp(is_cpp)
      .parse_args(&args)
      .link_staticlib(&dir, "my_fuzzer")
      .add_args(&Configuration::GenerateCoverageMap.to_flags().unwrap())
      .add_args(&Configuration::AddressSanitizer.to_flags().unwrap())
      .run()
      .unwrap();
}

Compile e use:

cargo build --release
target/release/libafl_cxx -DNO_MAIN -g -O2 main.cc harness.cc -o fuzz

Veja Também: Para configuração detalhada de sanitizers, problemas comuns e flags avançadas, veja as skills de técnica address-sanitizer e undefined-behavior-sanitizer.

Executando Campanhas

Execução Básica

./fuzz --cores 0 --input corpus/

Fuzzing Multi-Core

./fuzz --cores 0,8-15 --input corpus/

Isso executa 9 clientes: um no núcleo 0, e 8 nos núcleos 8-15.

Com Opções

./fuzz --cores 0-7 --input corpus/ --output crashes/ --timeout 1000

Interface de Usuário Textual (TUI)

Habilite a visualização gráfica de estatísticas:

./fuzz -tui=1 corpus/

Interpretando a Saída

SaídaSignificado
corpus: NNúmero de casos de teste interessantes encontrados
objectives: NNúmero de crashs/timeouts encontrados
executions: NNúmero total de invocações do alvo
exec/sec: NTaxa de execução atual
edges: X%Percentual de cobertura de código
clients: NNúmero de processos de fuzzing paralelos

O fuzzer emite dois tipos principais de eventos:

  • UserStats - Batimento cardíaco regular com estatísticas atuais
  • Testcase - Nova entrada interessante descoberta

Uso Avançado

Dicas e Truques

DicaPor que Ajuda
Use -fork=1 -ignore_crashes=1Continuar fuzzing após o primeiro crash
Use InMemoryOnDiskCorpusPersistir corpus entre reinicializações
Ative TUI com -tui=1Melhor visualização do progresso
Use versão específica do LLVMEvitar problemas de compatibilidade
Configure RUSTFLAGS corretamentePrevenir erros de linking

Deduplicação de Crashs

Evite armazenar crashs duplicados do mesmo bug:

Adicione observer de backtrace:

let backtrace_observer = BacktraceObserver::owned(
    "BacktraceObserver",
    libafl::observers::HarnessType::InProcess
);

Atualize o executor:

let mut executor = InProcessExecutor::with_timeout(
    &mut harness,
    tuple_list!(edges_observer, time_observer, backtrace_observer),
    &mut fuzzer,
    &mut state,
    &mut restarting_mgr,
    timeout,
)?;

Atualize o objetivo com feedback de hash:

let mut objective = feedback_and!(
    feedback_or_fast!(CrashFeedback::new(), TimeoutFeedback::new()),
    NewHashFeedback::new(&backtrace_observer)
);

Isso garante que apenas crashs com backtraces únicos sejam salvos.

Fuzzing com Dicionário

Use dicionários para guiar o fuzzing em direção a tokens específicos:

Adicione tokens de um arquivo:

let mut tokens = Tokens::new();
if let Some(tokenfile) = &tokenfile {
    tokens.add_from_file(tokenfile)?;
}
state.add_metadata(tokens);

Atualize o mutador:

let mutator = StdScheduledMutator::new(
    havoc_mutations().merge(tokens_mutations())
);

Exemplo de tokens codificados (PNG):

state.add_metadata(Tokens::from([
    vec![137, 80, 78, 71, 13, 10, 26, 10], // Cabeçalho PNG
    "IHDR".as_bytes().to_vec(),
    "IDAT".as_bytes().to_vec(),
    "PLTE".as_bytes().to_vec(),
    "IEND".as_bytes().to_vec(),
]));

Veja Também: Para estratégias detalhadas de criação de dicionários e dicionários específicos de formato, veja a skill de técnica fuzzing-dictionaries.

Tokens Automáticos

Extraia automaticamente valores mágicos e checksums do programa:

Ative no wrapper do compilador:

cc.add_pass(LLVMPasses::AutoTokens)

Carregue tokens automáticos no fuzzer:

tokens += libafl_targets::autotokens()?;

Verifique a seção de tokens:

echo "p (uint8_t *)__token_start" | gdb fuzz

Ajuste de Desempenho

ConfiguraçãoImpacto
Fuzzing multi-coreAceleração linear com núcleos
InMemoryCorpusMais rápido, mas não persistente
InMemoryOnDiskCorpusVelocidade e persistência equilibradas
SanitizersDesaceleração de 2-5x, essencial para bugs
Nível de otimização -O2Equilíbrio entre velocidade e cobertura

Depuração do Fuzzer

Execute o fuzzer em modo de processo único para depuração mais fácil:

// Substitua o launcher por uma chamada direta
run_client(None, SimpleEventManager::new(monitor), 0).unwrap();

// Comente:
// Launcher::builder()
//     .run_client(&mut run_client)
//     ...
//     .launch()

Depois depure com GDB:

gdb --args ./fuzz --cores 0 --input corpus/

Exemplos do Mundo Real

Exemplo: libpng

Fuzzing do libpng usando LibAFL:

1. Obtenha o código fonte:

curl -L -O https://downloads.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz
tar xf libpng-1.6.37.tar.xz
cd libpng-1.6.37/
apt install zlib1g-dev

2. Configure o wrapper do compilador:

export FUZZER_CARGO_DIR="/caminho/para/o/projeto/libafl"
export CC=$FUZZER_CARGO_DIR/target/release/libafl_cc
export CXX=$FUZZER_CARGO_DIR/target/release/libafl_cxx

3. Construa a biblioteca estática:

./configure --enable-shared=no
make

4. Obtenha o harness:

curl -O https://raw.githubusercontent.com/glennrp/libpng/f8e5fa92b0e37ab597616f554bee254157998227/contrib/oss-fuzz/libpng_read_fuzzer.cc

5. Link o fuzzer:

$CXX libpng_read_fuzzer.cc .libs/libpng16.a -lz -o fuzz

6. Prepare as sementes:

mkdir seeds/
curl -o seeds/input.png https://raw.githubusercontent.com/glennrp/libpng/acfd50ae0ba3198ad734e5d4dec2b05341e50924/contrib/pngsuite/iftp1n3p08.png

7. Obtenha o dicionário (opcional):

curl -O https://raw.githubusercontent.com/glennrp/libpng/2fff013a6935967960a5ae626fc21432807933dd/contrib/oss-fuzz/png.dict

8. Inicie o fuzzing:

./fuzz --input seeds/ --cores 0 -x png.dict

Exemplo: Projeto CMake

Integre o LibAFL com o sistema de build CMake:

CMakeLists.txt:

project(BuggyProgram)
cmake_minimum_required(VERSION 3.0)

add_executable(buggy_program main.cc)

add_executable(fuzz main.cc harness.cc)
target_compile_definitions(fuzz PRIVATE NO_MAIN=1)
target_compile_options(fuzz PRIVATE -g -O2)

Construa o binário não instrumentado:

cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
cmake --build . --target buggy_program

Construa o fuzzer:

export FUZZER_CARGO_DIR="/caminho/para/o/projeto/libafl"
export CC=$FUZZER_CARGO_DIR/target/release/libafl_cc
export CXX=$FUZZER_CARGO_DIR/target/release/libafl_cxx
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX .
cmake --build . --target fuzz

Referência da API

TipoPropósito
StdFuzzerFuzzer principal com escalonador, feedback e objetivo
InProcessExecutorExecuta o alvo no mesmo processo
ForkserverExecutorExecuta o alvo em processos separados
InMemoryCorpusArmazena entradas interessantes na memória
OnDiskCorpusArmazena entradas interessantes no disco
InMemoryOnDiskCorpusEspelha entradas na memória e no disco
QueueSchedulerEscalonador FIFO
IndexesLenTimeMinimizerSchedulerPrioriza entradas por cobertura e tempo
StdScheduledMutatorAplica mutações a entradas
StdMutationalStageUm estágio de fuzzing mutacional

Solução de Problemas

ProblemaSolução
Erros de linkingVerifique as flags do linker e as bibliotecas
Incompatibilidade do LLVMInstale a versão correta do LLVM (15-18)
Erros de compilação do RustAtualize Rust e dependências
Sem coberturaCertifique-se de que a instrumentação esteja ativa
Desempenho lentoReduza o número de sanitizers ativos
Multithreading instávelAjuste o número de núcleos e timeouts

Leitura Adicional

Veja Também: Para outras skills técnicas relacionadas a fuzzing e desenvolvimento de segurança, consulte: address-sanitizer, undefined-behavior-sanitizer, fuzzing-dictionaries, harness-writing, fuzz-harness-writing.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

bg-szy/TOP-SKILLS

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

bg-szy/TOP-SKILLS

Fill out Microsoft Azure Landing Zone (ALZ) Accelerator checklists by interviewing the user, mapping their Azure subscriptions, integrating IP addressing documentation, and applying Microsoft Cloud Adoption Framework best practices. Produces a completed Excel checklist (.xlsx) ready for ALZ deployment. Use this skill whenever the user mentions Azure Landing Zone, ALZ checklist, landing zone accelerator, platform landing zone configuration, ALZ bootstrap, hub-and-spoke setup, Azure network topology planning, or wants to fill out any ALZ-related checklist or configuration file. Also trigger when the user uploads an Excel file that contains tabs like "Accelerator - Bootstrap", "Accelerator - Bicep", or "Accelerator - Terraform".

bg-szy/TOP-SKILLS

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

bg-szy/TOP-SKILLS

Write high-converting landing page copy using proven frameworks like PAS (Problem-Agitate-Solution), AIDA, and StoryBrand. Creates headlines, value propositions, CTAs, and full page sections optimized for conversion. Use when users need landing page copy, sales page content, or marketing website text.

bg-szy/TOP-SKILLS

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

bg-szy/TOP-SKILLS

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

bg-szy/TOP-SKILLS

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use --robot-* flags for AI agents.

bg-szy/TOP-SKILLS

CI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup.

bg-szy/TOP-SKILLS

CASS Memory System - procedural memory for AI coding agents. Three-layer cognitive architecture with confidence decay, anti-pattern learning, cross-agent knowledge transfer, trauma guard safety system. Bun/TypeScript CLI.

bg-szy/TOP-SKILLS

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

bg-szy/TOP-SKILLS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

bg-szy/TOP-SKILLS

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

bg-szy/TOP-SKILLS

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

bg-szy/TOP-SKILLS

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

bg-szy/TOP-SKILLS

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

bg-szy/TOP-SKILLS

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

bg-szy/TOP-SKILLS

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

bg-szy/TOP-SKILLS

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

Habilidades Relacionadas