Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

fF 搜索

Agent Skill

该 Skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,589

周安装

326

GitHub Stars

公开资料未说明

下载量

2,660
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:f(F 搜索)
来源仓库:https://github.com/duanc-chao/f
安装命令:
openclaw skills install f
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install f

简介

使用标准 SQL 命令执行和管理关系数据库操作。

  • 包括创建表、查询、更新和控制访问等核心功能。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 适用于 OpenClaw 中与数据库交互的数据管理场景。
  • 需确保数据库连接安全和权限最小化,避免敏感数据暴露。
  • f 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Skill: SQL Operations Mastery

Name: sql-operations-mastery Description: A comprehensive guide to performing database operations using SQL, covering data definition, manipulation, querying, and control in relational database systems. Keywords: ["sql", "database", "relational database", "data manipulation", "data definition", "query", "mysql", "postgresql", "oracle"]

SQL Operations Mastery

Objective To equip users with the practical skills needed to effectively create, manage, and query relational databases using standard SQL (Structured Query Language).

Core Concept: The Language of Data

SQL (Structured Query Language) is the standardized programming language used to manage and manipulate relational databases. It is a declarative language, meaning you specify *what* data you want, and the database management system (DBMS) figures out the most efficient way to retrieve it.

  • Relational Databases: Data is organized into tables (relations) consisting of rows (records) and columns (fields). Tables can be linked via keys (primary and foreign keys).
  • Universal Application: While different database systems like MySQL, PostgreSQL, Oracle, and SQL Server have their own extensions (e.g., T-SQL), the core SQL syntax is largely consistent across all platforms.

The Four Pillars of SQL Commands

SQL commands are categorized into four main types based on their function.

Data Definition Language (DDL) DDL commands are used to define and manage the structure of the database and its objects, such as tables and indexes.

  • CREATE: Used to create new database objects.

- Create a Database:

CREATE DATABASE my_company;

- Create a Table:

USE my_company;
CREATE TABLE employees (
    id INT PRIMARY KEY,
    first_name VARCHAR(50),
    last_name VARCHAR(50),
    hire_date DATE,
    salary DECIMAL(10, 2)
);
  • ALTER: Used to modify the structure of an existing object.

- Add a Column:

ALTER TABLE employees ADD COLUMN department VARCHAR(50);
  • DROP: Used to delete an entire object from the database.

- Delete a Table:

DROP TABLE employees;

Data Manipulation Language (DML) DML commands are used to insert, update, and delete the actual data within the tables.

  • INSERT: Adds new rows of data to a table.
INSERT INTO employees (id, first_name, last_name, hire_date, salary, department)
VALUES (101, 'Jane', 'Doe', '2023-01-15', 75000.00, 'Engineering');
  • UPDATE: Modifies existing data in a table.
UPDATE employees
SET salary = 80000.00
WHERE id = 101;
  • DELETE: Removes rows from a table.
DELETE FROM employees
WHERE id = 101;

Data Query Language (DQL) DQL is primarily used for retrieving data from the database. The SELECT statement is the cornerstone of DQL.

  • Basic Query: Retrieve specific columns from a table.
SELECT first_name, last_name FROM employees;
  • Filtering with WHERE: Retrieve data that meets specific criteria.
SELECT * FROM employees WHERE department = 'Engineering';
  • Sorting with ORDER BY: Sort the result set by one or more columns.
SELECT first_name, last_name, salary
FROM employees
ORDER BY salary DESC;

Data Control Language (DCL) DCL commands manage access rights and permissions to the database.

  • GRANT: Gives a user specific privileges.
GRANT SELECT, INSERT ON employees TO 'analyst_user';
  • REVOKE: Takes away privileges from a user.
REVOKE INSERT ON employees FROM 'analyst_user';

Advanced Querying Techniques

To extract meaningful insights, you often need to perform more complex queries.

Aggregating Data Aggregate functions perform a calculation on a set of values and return a single value. Common functions include COUNT(), SUM(), AVG(), MIN(), and MAX().

  • Example: Find the average salary in the Engineering department.
SELECT AVG(salary) AS average_salary
FROM employees
WHERE department = 'Engineering';
  • Grouping with GROUP BY: Used with aggregate functions to group results by one or more columns.
SELECT department, COUNT(*) AS employee_count
FROM employees
GROUP BY department;

Combining Data from Multiple Tables (JOINs) The JOIN clause is used to combine rows from two or more tables based on a related column between them.

  • INNER JOIN: Returns records that have matching values in both tables.
-- Assume we have a 'departments' table with dept_id and dept_name
SELECT e.first_name, e.last_name, d.dept_name
FROM employees e
INNER JOIN departments d ON e.department = d.dept_name;

Subqueries A subquery is a query nested inside another query. It is often used in a WHERE clause.

  • Example: Find employees whose salary is above the company's average salary.
SELECT first_name, last_name, salary
FROM employees
WHERE salary > (SELECT AVG(salary) FROM employees);

Best Practices for Safe and Efficient Operations

  • Always Use WHERE for UPDATE/DELETE: Forgetting the WHERE clause in an UPDATE or DELETE statement will apply the operation to every row in the table. This is a common and often catastrophic mistake.
  • Use Transactions for Data Integrity: A transaction groups a set of SQL statements into a single unit of work. Either all statements succeed, or none of them do. This is crucial for maintaining data consistency.
BEGIN; -- Start the transaction
UPDATE accounts SET balance = balance - 100 WHERE user_id = 1;
UPDATE accounts SET balance = balance + 100 WHERE user_id = 2;
COMMIT; -- Save all changes
-- If an error occurs, you can use ROLLBACK; to undo all changes
  • Use Parameterized Queries: When writing application code that interacts with the database, always use parameterized queries to prevent SQL injection attacks, where malicious SQL code is inserted into a query.
  • Indexing for Performance: Create indexes on columns that are frequently used in WHERE clauses and JOIN conditions to significantly speed up query performance.
CREATE INDEX idx_employee_dept ON employees(department);

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.54%
按下载量换算2,249

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills