tiangong-kb-course-fulltext-fetch
Skill11 starsChanged 3 months agoMITView on GitHub
Fetch full text for a Tiangong KB course document through the Tiangong AI CLI. Use when a task has a course document_id and tags and needs the complete processed text.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-paper-downloadSkill
- airnow-hourly-obs-fetchSkill
- ai-tech-fulltext-fetchSkill
- ai-tech-rss-fetchSkill
- ai-tech-summarySkill
- apply-environmental-thinkingSkill
- bluesky-cascade-fetchSkill
- convert-image-to-jpgSkill
- dify-knowledge-base-searchSkill
- dify-knowledge-base-uploadSkill
- document-granular-decomposeSkill
- domain-onboardingSkill
- eceee-news-fulltext-fetchSkill
- email-imap-appendSkill
- email-imap-fetchSkill
- email-imap-full-fetchSkill
- email-smtp-sendSkill
- epa-eis-records-fetchSkill
- federal-register-doc-fetchSkill
- fetch-abstract-to-kbSkill
- fetch-meta-from-kbSkill
- fetch-meta-to-kbSkill
- figshare-data-downloadSkill
- gdelt-doc-searchSkill
- gdelt-events-fetchSkill
- gdelt-gkg-fetchSkill
- gdelt-mentions-fetchSkill
- gdelt-web-ngrams-searchSkill
- github-contribution-period-analysisSkill
- nasa-firms-fire-fetchSkill
- notebooklmSkill
- openaq-data-fetchSkill
- open-meteo-air-quality-fetchSkill
- open-meteo-flood-fetchSkill
- open-meteo-historical-fetchSkill
- regulationsgov-attachments-fetchSkill
- regulationsgov-comment-detail-fetchSkill
- regulationsgov-comments-fetchSkill
- remove-similar-imageSkill
- river-outfall-status-visualizerSkill
- sustainability-fulltext-fetchSkill
- sustainability-rss-fetchSkill
- sustainability-summarySkill
- synology-file-stationSkill
- tiangong-auto-researchSkill
- tiangong-auto-research-workbuddySkill
- tiangong-kb-course-searchSkill
- tiangong-kb-edu-searchSkill
- tiangong-kb-esg-searchSkill
- tiangong-kb-ingestSkill
- tiangong-kb-patent-searchSkill
- tiangong-kb-report-searchSkill
- tiangong-kb-sci-searchSkill
- tiangong-kb-textbook-searchSkill
- tsinghua-graduate-thesisSkill
- usbr-project-records-fetchSkill
- usbr-rise-fetchSkill
- use-thuenv-presentation-styleSkill
- usgs-water-iv-fetchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the task has a Tiangong KB course document_id and tags, and needs the full processed text for that document.
- Distinctive: line 13
Always call the Tiangong AI CLI:
- Distinctive: line 19
Do not call S3, NAS, Supabase, Pinecone, or OpenSearch directly from the skill.
- Very specific: line 31
If credentials live in a dotenv file, pass env_file.
- Distinctive: line 82
When using the returned text in reader-facing prose, cite source titles or paths when useful, but do not describe internal S3 paths, AWS …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tiangong KB Course Fulltext Fetch
Use this skill when the task has a Tiangong KB course document_id and tags,
and needs the full processed text for that document.
Boundary
Always call the Tiangong AI CLI:
npx @tiangong-ai/cli@0.0.19 kb course fulltext --document-id <document_id> --tags <tags>Do not call S3, NAS, Supabase, Pinecone, or OpenSearch directly from the skill. The CLI owns the S3 path rule, list/get behavior, and AWS SDK credential handling.
Prerequisites
- The wrapper defaults to
npx @tiangong-ai/cli@0.0.19; users do not need a preinstalled CLI. SetTIANGONG_AI_CLIorTIANGONG_AI_CLI_BINonly to override the CLI entrypoint. - AWS credentials must already be available in the environment through the AWS
SDK default chain, such as
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN,AWS_PROFILE,AWS_REGION, orAWS_DEFAULT_REGION. - If credentials live in a dotenv file, pass
env_file. Loaded dotenv values only fill unset environment variables; explicit JSON fields such asbucket,prefix, andregionare passed as CLI flags and take precedence. Never print secret values.
Fetch Full Text
Pass the course document_id and tags:
./scripts/course_fulltext_fetch.sh '{
"document_id": "000125ed-c4d9-4fe3-9383-281162406d66",
"tags": "thu_humanities"
}'The wrapper calls:
npx @tiangong-ai/cli@0.0.19 kb course fulltext --document-id <document_id> --tags <tags>To save the full text:
./scripts/course_fulltext_fetch.sh '{
"document_id": "000125ed-c4d9-4fe3-9383-281162406d66",
"tags": "thu_humanities"
}' ./fulltext.txtTo return CLI metadata and text as JSON:
./scripts/course_fulltext_fetch.sh '{
"document_id": "000125ed-c4d9-4fe3-9383-281162406d66",
"tags": "thu_humanities",
"json": true
}'Input Fields
document_idordocumentId: required course document id.tagsortag: required course tag, such asthu_humanities.output_file: optional output path. The second wrapper argument takes precedence when both are provided.env_file: optional dotenv file to load before calling the CLI.json: true to return the CLI JSON payload instead of plain text.bucket,prefix,region: optional overrides for the CLI command.
When using the returned text in reader-facing prose, cite source titles or paths when useful, but do not describe internal S3 paths, AWS credentials, or retrieval mechanics unless the user asks for implementation details.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

