Tw Legal RAG
aa0101181514/tw-legal-rag
Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.
Precedent M&A transactions analysis with deal multiples and acquisition history
$ npx skills add daloopa/investing --skill precedent-transactions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install daloopa/investing precedent-transactions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/precedent-transactions .claude/skills/precedent-transactions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .claude/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add daloopa/investing --skill precedent-transactions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install daloopa/investing precedent-transactions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/precedent-transactions .agents/skills/precedent-transactions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .agents/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add daloopa/investing --skill precedent-transactions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install daloopa/investing precedent-transactions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/precedent-transactions .cursor/skills/precedent-transactions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .cursor/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/daloopa/investing.git --path .claude/skills/precedent-transactions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add daloopa/investing --skill precedent-transactions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install daloopa/investing precedent-transactions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/precedent-transactions .gemini/skills/precedent-transactions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .gemini/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install daloopa/investing precedent-transactionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add daloopa/investing --skill precedent-transactions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/precedent-transactions .github/skills/precedent-transactions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .github/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add daloopa/investing --skill precedent-transactions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install daloopa/investing precedent-transactions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daloopa/investing.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/precedent-transactions .opencode/skills/precedent-transactions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "precedent-transactions" agent skill from https://github.com/daloopa/investing/tree/main/.claude/skills/precedent-transactions into .opencode/skills/precedent-transactions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "precedent-transactions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
precedent-transactionsPrecedent M&A transactions analysis with deal multiples and acquisition history
Precedent Transactions is an agent skill from daloopa/investing. Precedent M&A transactions analysis with deal multiples and acquisition history
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Legal & Compliance, covering Legal research. The licence is Apache-2.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e2dd01d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
daloopa.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Precedent Transactions loads about 2.4k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 1,042 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from daloopa/investing at commit e2dd01d, republished under its Apache-2.0 licence (© daloopa). 1,042 words, ~2,385 tokens.
.claude/skills/precedent-transactions/SKILL.md (or your agent's skills folder).Build a precedent transactions analysis for the company specified by the user: $ARGUMENTS
This is the third pillar of valuation (alongside trading comps and DCF) — it answers: what have acquirers actually paid for businesses like this one? The output is two tables: comparable M&A transactions with deal multiples, and the subject company's own acquisition history.
Before starting, read ../data-access.md for data access methods and ../design-system.md for formatting conventions. Follow the data access detection logic and design system throughout this skill.
Follow these steps:
Look up the company by ticker using discover_companies. Capture:
company_idlatest_calendar_quarter — anchor for all period calculations below (see ../data-access.md Section 1.5)latest_fiscal_quarter../data-access.md Section 4.5Identify:
Calculate 4 quarters backward from latest_calendar_quarter. Pull from Daloopa:
These serve as the reference point for comparing deal multiples — what would an acquirer be paying relative to this company's current financials?
Find 8-15 completed M&A transactions from the last 7-10 years involving target companies comparable to the subject. "Comparable" means:
Research sources in priority order:
Use web search to identify deals: "{industry} acquisitions {sub-sector} last 10 years", "{TICKER} comparable M&A transactions", "{sector} deal comps precedent transactions".
Do NOT use: finance blogs, Yahoo Finance editorial, Benzinga, Seeking Alpha, Motley Fool, Zacks, TipRanks, StockTwits, Reddit, anonymous wiki contributions, or aggregators without a traceable primary source (see ../data-access.md Section 2.5).
For each transaction, capture:
For each target company in the precedent transactions table, source LTM Revenue and EBITDA from Daloopa:
discover_companies with the target's ticker or namediscover_company_series with keywords ["revenue", "EBITDA"] and the appropriate period (the last complete fiscal year before the deal announcement)get_company_fundamentals with the discovered series IDsDaloopa is the primary source. Only fall back to other sources when a target is genuinely unavailable in the database.
For each transaction where both EV and financials are available:
Compute summary statistics (excluding N/A values):
If fewer than 3 valid data points exist for a multiple, note that the statistic is not meaningful.
Find deals where the subject company itself was the acquirer. Sources: company IR page, SEC 8-K or equivalent filings, Reuters/Bloomberg/WSJ.
For each acquisition, capture:
Apply the precedent transaction multiples to the subject's current financials:
| Methodology | Percentile | Multiple | Subject LTM Metric | Implied EV |
|---|---|---|---|---|
| EV/Revenue | Median | XX.Xx | $XXX | $XXX |
| EV/Revenue | 25th-75th | XX.Xx-XX.Xx | $XXX | $XXX-$XXX |
| EV/EBITDA | Median | XX.Xx | $XXX | $XXX |
| EV/EBITDA | 25th-75th | XX.Xx-XX.Xx | $XXX | $XXX-$XXX |
Convert implied EV to implied equity value (EV - Net Debt) and implied share price where market data is available (see ../data-access.md Section 2). Compare to current market price.
Context matters more than precision:
Search filings and news for context on the M&A environment:
"{industry} M&A outlook {current_year}" — deal activity trends"{TICKER} acquisition target rumors" — is the subject itself a takeout candidate?Summarize in 3-5 bullets:
Save to reports/{TICKER}_precedent_transactions.html using the HTML report template from ../design-system.md. Write the full analysis as styled HTML with the design system CSS inlined. This is the final deliverable — no intermediate markdown step needed.
The report should include interactive features:
data- attributes and safe DOM methods (createElement, textContent, appendChild) — never innerHTML.Structure the report with these sections:
<h1>{Company Name} ({TICKER}) — Precedent Transactions Analysis</h1>
<p>Generated: {date}</p>
<h2>Summary</h2>
{2-3 sentences: What do precedent transactions imply for this company's valuation? How does it compare to the current market price?}
<h2>Subject Company Overview</h2>
{Exchange, currency, industry, LTM Revenue and EBITDA with Daloopa citations}
{Note: "Revenue and EBITDA sourced from Daloopa where available"}
<h2>Selected Precedent Transactions</h2>
<table>
| Date | Acquirer | Target | EV ($M) | LTM Rev ($M) | LTM EBITDA ($M) | EV/Rev | EV/EBITDA | Consideration |
{data rows with Daloopa-cited financials, footnote superscripts, clickable acquirers}
| 75th Percentile | | | | | | XX.Xx | XX.Xx | |
| **Average** | | | | | | **XX.Xx** | **XX.Xx** | |
| **Median** | | | | | | **XX.Xx** | **XX.Xx** | |
| 25th Percentile | | | | | | XX.Xx | XX.Xx | |
</table>
<h2>Implied Valuation</h2>
<table>
| Methodology | Multiple | Subject Metric | Implied EV | Implied Equity | Implied Price | vs Current |
{valuation bridge using median and range multiples}
</table>
<h2>{Company Name} Acquisition History</h2>
<table>
| Date | Target | Deal Value | Consideration | Strategic Rationale |
{company's own M&A deals}
</table>
<h2>Deal Environment</h2>
<ul>{3-5 bullets on sector M&A trends, control premiums, takeout potential}</ul>
<h2>Sources</h2>
{Numbered footnote list — each deal with press release link, SEC filing, Daloopa data links}
{Data sourced from Daloopa attribution}All financial figures from Daloopa must use citation format: <a href="https://daloopa.com/src/{fundamental_id}">$X.XX million</a>
Tell the user where the HTML report was saved.
Highlight: what precedent transactions imply about the company's takeout value, how it compares to the current market price, and whether the sector M&A environment supports deal activity.
© daloopa, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/precedent-transactions of daloopa/investing.
Open the folder on GitHubat commit e2dd01d
Precedent Transactions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Precedent Transactions this skilldaloopa/investing | 489 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Tw Legal RAGaa0101181514/tw-legal-rag | 328 | — | ~580 | Automated safety check: Pass | Custom licence | |
| Design Award SearchSeanJ1ang/design-judge-skills | 712 | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| China Lawyer AnalystCSlawyer1985/china-lawyer-analyst | 196 | — | ~3.3k | Automated safety check: Pass | None | |
| Billing And Litigation BudgetTHUYRan/Legal-Skills-Chinese | 873 | — | ~5k | Automated safety check: Pass | None | |
| Legal Issue ResearchGolden2002/legal-research-skill | 156 | — | ~6.8k | Automated safety check: Pass | MIT |
aa0101181514/tw-legal-rag
Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.
SeanJ1ang/design-judge-skills
Find and verify award-winning designs in the same or adjacent functional category through eight explicit relevance dimensions: problem and user, core function, sensing technology, intervention…
CSlawyer1985/china-lawyer-analyst
通过中国法律视角分析事件,运用成文法解释、指导案例参照、请求权基础分析等方法, 理解权利义务、评估责任风险、识别法律依据并推荐合规策略。
THUYRan/Legal-Skills-Chinese
A skill your agent uses when the user needs to track or manage attorney hours, expert fees, and investigation costs; control litigation spend; or prepare timesheets or expense statements for clients.
Golden2002/legal-research-skill
中国法律全领域系统性检索专家. An agent skill from Golden2002/legal-research-skill.
Serein-81/financial_rag
Searches current Chinese tax laws, rates and policy changes with Tavily web search, prioritizing government sources and flagging outdated or conflicting results.
daloopa/investing
Deep dive into capital deployment, buybacks, dividends, and shareholder yield
daloopa/investing
Build an industry comp sheet Excel model with deep operational KPIs
daloopa/investing
Trading comparables analysis with peer multiples and implied valuation
daloopa/investing
Discounted cash flow valuation with sensitivity analysis. An agent skill from daloopa/investing.
daloopa/investing
Rapid first-read earnings flash for a given company. An agent skill from daloopa/investing.
daloopa/investing
Track management guidance accuracy over time for a given company
Categories
Precedent M&A transactions analysis with deal multiples and acquisition history. Precedent Transactions is an agent skill from daloopa/investing.
Precedent Transactions fits situations like: tasks that involve Legal research.
Run `npx skills add daloopa/investing --skill precedent-transactions -a claude-code`. Or copy the skill folder (.claude/skills/precedent-transactions in daloopa/investing) into .claude/skills/precedent-transactions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add daloopa/investing --skill precedent-transactions -a codex`. Or copy the skill folder (.claude/skills/precedent-transactions in daloopa/investing) into .agents/skills/precedent-transactions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add daloopa/investing --skill precedent-transactions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/precedent-transactions, .gemini/skills/precedent-transactions, .github/skills/precedent-transactions and .opencode/skills/precedent-transactions in your project.
SKILL.md names no scripts, command-line tools or credentials: Precedent Transactions is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: daloopa.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Precedent Transactions is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Precedent Transactions: Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), Design Award Search (SeanJ1ang/design-judge-skills, 712 stars), China Lawyer Analyst (CSlawyer1985/china-lawyer-analyst, 196 stars) and Billing And Litigation Budget (THUYRan/Legal-Skills-Chinese, 873 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
daloopa (a GitHub organization) maintains it in daloopa/investing, which has 489 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 7, 2026.
Source: daloopa/investing on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.