Creator · rcosteira79
Last updated · Sep 4, 2026
Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 1
Creator · rcosteira79
Last updated · Sep 4, 2026
Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 1
Creator · rcosteira79
Last updated · Sep 4, 2026
Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 1
Creator · rcosteira79
Last updated · Sep 4, 2026
Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 1
Sandbox only
Install targets
Codex install prompt
Install the "pdf-annotations" agent skill from https://github.com/rcosteira79/android-skills/tree/main/plugins/android-skills/skills/pdf-annotations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"rcosteira79-pdf-annotations","task":"Install pdf-annotations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add rcosteira79/android-skills --skill pdf-annotations
Maintenance
fresh
12d since push
Risk
Needs review
Quality score needs review
GitHub quality
136
68/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 136 stars, 14 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
136 GitHub stars
Repo activity
136 stars, 14 forks
Maintenance
12d since push
License
MIT
Install
npx skills add rcosteira79/android-skills --skill pdf-annotations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add rcosteira79/android-skills --skill pdf-annotationsDo not use when
Alternative
174.6K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.6K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
174.6K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Usable candidate, but the agent should surface permission and audit notes before installation.
Require human approval before installing into a real workspace.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
Agent should check
Copy prompt
Task: Use pdf-annotations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install
Install command: npx skills add rcosteira79/android-skills --skill pdf-annotations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
LLM text format
/api/skills/rcosteira79-pdf-annotations/install?format=text
Find alternatives
/api/skills/search?q=pdf-annotations&limit=3
Agent prompt
Use pdf-annotations for this task. Review https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install, then install with: npx skills add rcosteira79/android-skills --skill pdf-annotationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/rcosteira79-pdf-annotations
LLM text
/api/registry/manifest/rcosteira79-pdf-annotations?format=text
Install alias
/api/registry/install/rcosteira79-pdf-annotations
Recommend
/api/registry/recommend?task=Use%20pdf-annotations%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO136 GitHub stars
Stars/forks activity
CHECK136 stars, 14 forks; issue activity unavailable in current metadata
Recent maintenance
PASS12d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: pdf-annotations description: > Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). ---
# Platform PDF annotation & page-object editing
Android can natively edit PDF annotations since API 36.1 — before that the platform story was render-only and the docs still say so: the Jetpack viewer guide's PDF surface is `PdfViewerFragment`, which explicitly does **not** support edit mode and hands annotation off to other apps via an `android.intent.action.ANNOTATE` intent [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]. Do not conclude "use a third-party library" for annotation work before applying the version gate below.
## The version gate (decide the entry point first)
Two parallel renderers expose the same editing surface (`android.graphics.pdf.component`):
| Entry point | Editing available | Device requirement | |---|---|---| | `PdfRenderer.Page` | API 36.1+ | platform release | | `PdfRendererPreV.Page` | SDK extension 18 | API 31+ with the PDF module updated (PreV itself needs extension 13) |
Gate at runtime with `SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S)` [kb://android/guide/sdk-extensions/index]. Extension 18 reaches back to API 31 via mainline updates, so `PdfRendererPreV` is the branch that covers most devices.
## The workflow: open → edit → write
```kotlin // The fd must be seekable — pipes/sockets are rejected at construction. ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).use { fd -> PdfRenderer(fd).use { renderer -> // or PdfRendererPreV on the ext-18 branch renderer.openPage(0).use { page -> // Only SUPPORTED annotation types are listed. The pairs are // android.util.Pair — NO Kotlin destructuring (no component1/2); // read them with .first / .second. val existing = page.getPageAnnotations() val staleId: Int? = existing.firstOrNull { it.second is FreeTextAnnotation }?.first
val highlight = HighlightAnnotation(boundsList) // List<RectF> quads val id = page.addPageAnnotation(highlight) check(id != -1) { "annotation rejected" } // add returns -1, it does NOT throw
highlight.color = newColor page.updatePageAnnotation(id, highlight) // by id -> Boolean success staleId?.let { page.removePageAnnotation(it) } // by id, not list position } // Write BEFORE close(), to a separate writable fd; the boolean is // removePasswordProtection (IOException if true and the doc stays encrypted). ParcelFileDescriptor.open( dest, ParcelFileDescriptor.MODE_READ_WRITE or ParcelFileDescriptor.MODE_CREATE, ).use { out -> renderer.write(out, false) } } } ```
Contracts:
- **`addPageAnnotation` returns the annotation id, or `-1` when the annotation cannot be added — check the return; only null/`UNKNOWN`-type/already-attached arguments throw** (`IllegalArgumentException`). - **An annotation instance is single-attach document-wide**: adding one that is "already added in this page or some other page" throws. Construct a fresh component object per add; don't reuse a removed one across pages. - **Ids, not list positions, drive `update`/`remove`.** `getPageAnnotations()` returns only annotation types the API models, so a page with unsupported annotations has gaps — the `Pair.first` id is the stable handle. - **One page open at a time** — the pre-existing `PdfRenderer` invariant ("you can have only a single page opened at any given time") still applies; close the page before opening the next. - **`write()` before `close()`**, destination must be a distinct writable seekable fd; `IllegalStateException` after close. - **The pairs are `android.util.Pair`, not `kotlin.Pair`** — Kotlin destructuring (`for ((id, a) in …)`) does not compile against them; use `.first`/`.second`.
## Rendering what you edited
Annotation types render only when `RenderParams.renderFlags` includes them: `FLAG_RENDER_TEXT_ANNOTATIONS` / `FLAG_RENDER_HIGHLIGHT_ANNOTATIONS` (and the 36.1 additions `FLAG_RENDER_FREETEXT_ANNOTATIONS` / `FLAG_RENDER_STAMP_ANNOTATIONS`). An added stamp or free-text that "doesn't show up" in your preview bitmap is usually a missing render flag, not a failed add — re-render with the matching flags set via `RenderParams.Builder.setRenderFlags(...)` and the `render(bitmap, clip, transform, params)` overload. The render-mode constants live on **`RenderParams`** (and legacy `PdfRenderer.Page`) — `PdfRendererPreV.Page` has none, so on the PreV branch write `RenderParams.Builder(RenderParams.RENDER_MODE_FOR_DISPLAY)`; qualifying it via `PdfRendererPreV.Page` does not compile.
## Component vocabulary (android.graphics.pdf.component)
- `HighlightAnnotation(List<RectF>)` — quad list, one rect per highlighted run. - `FreeTextAnnotation(RectF, String)` — bounds + text; text/background colors settable. - `StampAnnotation(RectF)` — a container: **only** `PdfPagePathObject`, `PdfPageTextObject`, or `PdfPageImageObject` children (`addObject`), per the class contract. - Page objects also attach directly to the page (`addPageObject` / `getPageObjects` / `updatePageObject` / `removePageObject` — same id-based contract as annotations), and carry a transform matrix (`PdfPageObject.setMatrix`/`transform`). `PdfPagePathObject` stroke defaults to opaque black in sRGB. - `Page.getTopPageObjectAtPosition(PointF, …)` hit-tests the topmost object — use it for tap-to-select before update/remove.
## Out of scope (route elsewhere)
Creating PDFs from scratch (`PdfDocument` canvas API), form filling (`applyEdit`, API 35), text extraction/search, and embedding a viewer UI (`PdfViewerFragment` — display-only [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]) are separate surfaces; third-party SDKs remain the answer only below the version gate or for annotation types the component API doesn't model.
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for pdf-annotations, ready for a manual X post.
pdf-annotations: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp)... 136 stars https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x
Listing + install path for pdf-annotations: https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x Install: npx skills add rcosteira79/android-skills --skill pdf-annotations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to rcosteira79 but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations/audit)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)rcosteira79
@rcosteira79
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.6K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.6K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.6K StarsSandbox only
Install targets
Codex install prompt
Install the "pdf-annotations" agent skill from https://github.com/rcosteira79/android-skills/tree/main/plugins/android-skills/skills/pdf-annotations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"rcosteira79-pdf-annotations","task":"Install pdf-annotations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add rcosteira79/android-skills --skill pdf-annotations
Maintenance
fresh
12d since push
Risk
Needs review
Quality score needs review
GitHub quality
136
68/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 136 stars, 14 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
136 GitHub stars
Repo activity
136 stars, 14 forks
Maintenance
12d since push
License
MIT
Install
npx skills add rcosteira79/android-skills --skill pdf-annotations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add rcosteira79/android-skills --skill pdf-annotationsDo not use when
Alternative
174.6K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.6K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
174.6K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Usable candidate, but the agent should surface permission and audit notes before installation.
Require human approval before installing into a real workspace.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
Agent should check
Copy prompt
Task: Use pdf-annotations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install
Install command: npx skills add rcosteira79/android-skills --skill pdf-annotations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
LLM text format
/api/skills/rcosteira79-pdf-annotations/install?format=text
Find alternatives
/api/skills/search?q=pdf-annotations&limit=3
Agent prompt
Use pdf-annotations for this task. Review https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install, then install with: npx skills add rcosteira79/android-skills --skill pdf-annotationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/rcosteira79-pdf-annotations
LLM text
/api/registry/manifest/rcosteira79-pdf-annotations?format=text
Install alias
/api/registry/install/rcosteira79-pdf-annotations
Recommend
/api/registry/recommend?task=Use%20pdf-annotations%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO136 GitHub stars
Stars/forks activity
CHECK136 stars, 14 forks; issue activity unavailable in current metadata
Recent maintenance
PASS12d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: pdf-annotations description: > Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). ---
# Platform PDF annotation & page-object editing
Android can natively edit PDF annotations since API 36.1 — before that the platform story was render-only and the docs still say so: the Jetpack viewer guide's PDF surface is `PdfViewerFragment`, which explicitly does **not** support edit mode and hands annotation off to other apps via an `android.intent.action.ANNOTATE` intent [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]. Do not conclude "use a third-party library" for annotation work before applying the version gate below.
## The version gate (decide the entry point first)
Two parallel renderers expose the same editing surface (`android.graphics.pdf.component`):
| Entry point | Editing available | Device requirement | |---|---|---| | `PdfRenderer.Page` | API 36.1+ | platform release | | `PdfRendererPreV.Page` | SDK extension 18 | API 31+ with the PDF module updated (PreV itself needs extension 13) |
Gate at runtime with `SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S)` [kb://android/guide/sdk-extensions/index]. Extension 18 reaches back to API 31 via mainline updates, so `PdfRendererPreV` is the branch that covers most devices.
## The workflow: open → edit → write
```kotlin // The fd must be seekable — pipes/sockets are rejected at construction. ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).use { fd -> PdfRenderer(fd).use { renderer -> // or PdfRendererPreV on the ext-18 branch renderer.openPage(0).use { page -> // Only SUPPORTED annotation types are listed. The pairs are // android.util.Pair — NO Kotlin destructuring (no component1/2); // read them with .first / .second. val existing = page.getPageAnnotations() val staleId: Int? = existing.firstOrNull { it.second is FreeTextAnnotation }?.first
val highlight = HighlightAnnotation(boundsList) // List<RectF> quads val id = page.addPageAnnotation(highlight) check(id != -1) { "annotation rejected" } // add returns -1, it does NOT throw
highlight.color = newColor page.updatePageAnnotation(id, highlight) // by id -> Boolean success staleId?.let { page.removePageAnnotation(it) } // by id, not list position } // Write BEFORE close(), to a separate writable fd; the boolean is // removePasswordProtection (IOException if true and the doc stays encrypted). ParcelFileDescriptor.open( dest, ParcelFileDescriptor.MODE_READ_WRITE or ParcelFileDescriptor.MODE_CREATE, ).use { out -> renderer.write(out, false) } } } ```
Contracts:
- **`addPageAnnotation` returns the annotation id, or `-1` when the annotation cannot be added — check the return; only null/`UNKNOWN`-type/already-attached arguments throw** (`IllegalArgumentException`). - **An annotation instance is single-attach document-wide**: adding one that is "already added in this page or some other page" throws. Construct a fresh component object per add; don't reuse a removed one across pages. - **Ids, not list positions, drive `update`/`remove`.** `getPageAnnotations()` returns only annotation types the API models, so a page with unsupported annotations has gaps — the `Pair.first` id is the stable handle. - **One page open at a time** — the pre-existing `PdfRenderer` invariant ("you can have only a single page opened at any given time") still applies; close the page before opening the next. - **`write()` before `close()`**, destination must be a distinct writable seekable fd; `IllegalStateException` after close. - **The pairs are `android.util.Pair`, not `kotlin.Pair`** — Kotlin destructuring (`for ((id, a) in …)`) does not compile against them; use `.first`/`.second`.
## Rendering what you edited
Annotation types render only when `RenderParams.renderFlags` includes them: `FLAG_RENDER_TEXT_ANNOTATIONS` / `FLAG_RENDER_HIGHLIGHT_ANNOTATIONS` (and the 36.1 additions `FLAG_RENDER_FREETEXT_ANNOTATIONS` / `FLAG_RENDER_STAMP_ANNOTATIONS`). An added stamp or free-text that "doesn't show up" in your preview bitmap is usually a missing render flag, not a failed add — re-render with the matching flags set via `RenderParams.Builder.setRenderFlags(...)` and the `render(bitmap, clip, transform, params)` overload. The render-mode constants live on **`RenderParams`** (and legacy `PdfRenderer.Page`) — `PdfRendererPreV.Page` has none, so on the PreV branch write `RenderParams.Builder(RenderParams.RENDER_MODE_FOR_DISPLAY)`; qualifying it via `PdfRendererPreV.Page` does not compile.
## Component vocabulary (android.graphics.pdf.component)
- `HighlightAnnotation(List<RectF>)` — quad list, one rect per highlighted run. - `FreeTextAnnotation(RectF, String)` — bounds + text; text/background colors settable. - `StampAnnotation(RectF)` — a container: **only** `PdfPagePathObject`, `PdfPageTextObject`, or `PdfPageImageObject` children (`addObject`), per the class contract. - Page objects also attach directly to the page (`addPageObject` / `getPageObjects` / `updatePageObject` / `removePageObject` — same id-based contract as annotations), and carry a transform matrix (`PdfPageObject.setMatrix`/`transform`). `PdfPagePathObject` stroke defaults to opaque black in sRGB. - `Page.getTopPageObjectAtPosition(PointF, …)` hit-tests the topmost object — use it for tap-to-select before update/remove.
## Out of scope (route elsewhere)
Creating PDFs from scratch (`PdfDocument` canvas API), form filling (`applyEdit`, API 35), text extraction/search, and embedding a viewer UI (`PdfViewerFragment` — display-only [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]) are separate surfaces; third-party SDKs remain the answer only below the version gate or for annotation types the component API doesn't model.
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for pdf-annotations, ready for a manual X post.
pdf-annotations: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp)... 136 stars https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x
Listing + install path for pdf-annotations: https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x Install: npx skills add rcosteira79/android-skills --skill pdf-annotations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to rcosteira79 but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations/audit)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)rcosteira79
@rcosteira79
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.6K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.6K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.6K StarsSandbox only
Install targets
Codex install prompt
Install the "pdf-annotations" agent skill from https://github.com/rcosteira79/android-skills/tree/main/plugins/android-skills/skills/pdf-annotations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"rcosteira79-pdf-annotations","task":"Install pdf-annotations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add rcosteira79/android-skills --skill pdf-annotations
Maintenance
fresh
12d since push
Risk
Needs review
Quality score needs review
GitHub quality
136
68/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 136 stars, 14 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
136 GitHub stars
Repo activity
136 stars, 14 forks
Maintenance
12d since push
License
MIT
Install
npx skills add rcosteira79/android-skills --skill pdf-annotations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add rcosteira79/android-skills --skill pdf-annotationsDo not use when
Alternative
174.6K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.6K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
174.6K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Usable candidate, but the agent should surface permission and audit notes before installation.
Require human approval before installing into a real workspace.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
Agent should check
Copy prompt
Task: Use pdf-annotations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install
Install command: npx skills add rcosteira79/android-skills --skill pdf-annotations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
LLM text format
/api/skills/rcosteira79-pdf-annotations/install?format=text
Find alternatives
/api/skills/search?q=pdf-annotations&limit=3
Agent prompt
Use pdf-annotations for this task. Review https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install, then install with: npx skills add rcosteira79/android-skills --skill pdf-annotationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/rcosteira79-pdf-annotations
LLM text
/api/registry/manifest/rcosteira79-pdf-annotations?format=text
Install alias
/api/registry/install/rcosteira79-pdf-annotations
Recommend
/api/registry/recommend?task=Use%20pdf-annotations%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO136 GitHub stars
Stars/forks activity
CHECK136 stars, 14 forks; issue activity unavailable in current metadata
Recent maintenance
PASS12d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: pdf-annotations description: > Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). ---
# Platform PDF annotation & page-object editing
Android can natively edit PDF annotations since API 36.1 — before that the platform story was render-only and the docs still say so: the Jetpack viewer guide's PDF surface is `PdfViewerFragment`, which explicitly does **not** support edit mode and hands annotation off to other apps via an `android.intent.action.ANNOTATE` intent [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]. Do not conclude "use a third-party library" for annotation work before applying the version gate below.
## The version gate (decide the entry point first)
Two parallel renderers expose the same editing surface (`android.graphics.pdf.component`):
| Entry point | Editing available | Device requirement | |---|---|---| | `PdfRenderer.Page` | API 36.1+ | platform release | | `PdfRendererPreV.Page` | SDK extension 18 | API 31+ with the PDF module updated (PreV itself needs extension 13) |
Gate at runtime with `SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S)` [kb://android/guide/sdk-extensions/index]. Extension 18 reaches back to API 31 via mainline updates, so `PdfRendererPreV` is the branch that covers most devices.
## The workflow: open → edit → write
```kotlin // The fd must be seekable — pipes/sockets are rejected at construction. ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).use { fd -> PdfRenderer(fd).use { renderer -> // or PdfRendererPreV on the ext-18 branch renderer.openPage(0).use { page -> // Only SUPPORTED annotation types are listed. The pairs are // android.util.Pair — NO Kotlin destructuring (no component1/2); // read them with .first / .second. val existing = page.getPageAnnotations() val staleId: Int? = existing.firstOrNull { it.second is FreeTextAnnotation }?.first
val highlight = HighlightAnnotation(boundsList) // List<RectF> quads val id = page.addPageAnnotation(highlight) check(id != -1) { "annotation rejected" } // add returns -1, it does NOT throw
highlight.color = newColor page.updatePageAnnotation(id, highlight) // by id -> Boolean success staleId?.let { page.removePageAnnotation(it) } // by id, not list position } // Write BEFORE close(), to a separate writable fd; the boolean is // removePasswordProtection (IOException if true and the doc stays encrypted). ParcelFileDescriptor.open( dest, ParcelFileDescriptor.MODE_READ_WRITE or ParcelFileDescriptor.MODE_CREATE, ).use { out -> renderer.write(out, false) } } } ```
Contracts:
- **`addPageAnnotation` returns the annotation id, or `-1` when the annotation cannot be added — check the return; only null/`UNKNOWN`-type/already-attached arguments throw** (`IllegalArgumentException`). - **An annotation instance is single-attach document-wide**: adding one that is "already added in this page or some other page" throws. Construct a fresh component object per add; don't reuse a removed one across pages. - **Ids, not list positions, drive `update`/`remove`.** `getPageAnnotations()` returns only annotation types the API models, so a page with unsupported annotations has gaps — the `Pair.first` id is the stable handle. - **One page open at a time** — the pre-existing `PdfRenderer` invariant ("you can have only a single page opened at any given time") still applies; close the page before opening the next. - **`write()` before `close()`**, destination must be a distinct writable seekable fd; `IllegalStateException` after close. - **The pairs are `android.util.Pair`, not `kotlin.Pair`** — Kotlin destructuring (`for ((id, a) in …)`) does not compile against them; use `.first`/`.second`.
## Rendering what you edited
Annotation types render only when `RenderParams.renderFlags` includes them: `FLAG_RENDER_TEXT_ANNOTATIONS` / `FLAG_RENDER_HIGHLIGHT_ANNOTATIONS` (and the 36.1 additions `FLAG_RENDER_FREETEXT_ANNOTATIONS` / `FLAG_RENDER_STAMP_ANNOTATIONS`). An added stamp or free-text that "doesn't show up" in your preview bitmap is usually a missing render flag, not a failed add — re-render with the matching flags set via `RenderParams.Builder.setRenderFlags(...)` and the `render(bitmap, clip, transform, params)` overload. The render-mode constants live on **`RenderParams`** (and legacy `PdfRenderer.Page`) — `PdfRendererPreV.Page` has none, so on the PreV branch write `RenderParams.Builder(RenderParams.RENDER_MODE_FOR_DISPLAY)`; qualifying it via `PdfRendererPreV.Page` does not compile.
## Component vocabulary (android.graphics.pdf.component)
- `HighlightAnnotation(List<RectF>)` — quad list, one rect per highlighted run. - `FreeTextAnnotation(RectF, String)` — bounds + text; text/background colors settable. - `StampAnnotation(RectF)` — a container: **only** `PdfPagePathObject`, `PdfPageTextObject`, or `PdfPageImageObject` children (`addObject`), per the class contract. - Page objects also attach directly to the page (`addPageObject` / `getPageObjects` / `updatePageObject` / `removePageObject` — same id-based contract as annotations), and carry a transform matrix (`PdfPageObject.setMatrix`/`transform`). `PdfPagePathObject` stroke defaults to opaque black in sRGB. - `Page.getTopPageObjectAtPosition(PointF, …)` hit-tests the topmost object — use it for tap-to-select before update/remove.
## Out of scope (route elsewhere)
Creating PDFs from scratch (`PdfDocument` canvas API), form filling (`applyEdit`, API 35), text extraction/search, and embedding a viewer UI (`PdfViewerFragment` — display-only [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]) are separate surfaces; third-party SDKs remain the answer only below the version gate or for annotation types the component API doesn't model.
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for pdf-annotations, ready for a manual X post.
pdf-annotations: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp)... 136 stars https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x
Listing + install path for pdf-annotations: https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x Install: npx skills add rcosteira79/android-skills --skill pdf-annotations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to rcosteira79 but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations/audit)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)rcosteira79
@rcosteira79
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.6K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.6K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.6K StarsSandbox only
Install targets
Codex install prompt
Install the "pdf-annotations" agent skill from https://github.com/rcosteira79/android-skills/tree/main/plugins/android-skills/skills/pdf-annotations. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"rcosteira79-pdf-annotations","task":"Install pdf-annotations","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add rcosteira79/android-skills --skill pdf-annotations
Maintenance
fresh
12d since push
Risk
Needs review
Quality score needs review
GitHub quality
136
68/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 136 stars, 14 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
136 GitHub stars
Repo activity
136 stars, 14 forks
Maintenance
12d since push
License
MIT
Install
npx skills add rcosteira79/android-skills --skill pdf-annotations
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add rcosteira79/android-skills --skill pdf-annotationsDo not use when
Alternative
174.6K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.6K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
174.6K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Usable candidate, but the agent should surface permission and audit notes before installation.
Require human approval before installing into a real workspace.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
Agent should check
Copy prompt
Task: Use pdf-annotations in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20pdf-annotations%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install
Install command: npx skills add rcosteira79/android-skills --skill pdf-annotations
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/rcosteira79-pdf-annotations/install
LLM text format
/api/skills/rcosteira79-pdf-annotations/install?format=text
Find alternatives
/api/skills/search?q=pdf-annotations&limit=3
Agent prompt
Use pdf-annotations for this task. Review https://www.openagentskill.com/api/skills/rcosteira79-pdf-annotations/install, then install with: npx skills add rcosteira79/android-skills --skill pdf-annotationsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/rcosteira79-pdf-annotations
LLM text
/api/registry/manifest/rcosteira79-pdf-annotations?format=text
Install alias
/api/registry/install/rcosteira79-pdf-annotations
Recommend
/api/registry/recommend?task=Use%20pdf-annotations%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO136 GitHub stars
Stars/forks activity
CHECK136 stars, 14 forks; issue activity unavailable in current metadata
Recent maintenance
PASS12d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: pdf-annotations description: > Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit). ---
# Platform PDF annotation & page-object editing
Android can natively edit PDF annotations since API 36.1 — before that the platform story was render-only and the docs still say so: the Jetpack viewer guide's PDF surface is `PdfViewerFragment`, which explicitly does **not** support edit mode and hands annotation off to other apps via an `android.intent.action.ANNOTATE` intent [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]. Do not conclude "use a third-party library" for annotation work before applying the version gate below.
## The version gate (decide the entry point first)
Two parallel renderers expose the same editing surface (`android.graphics.pdf.component`):
| Entry point | Editing available | Device requirement | |---|---|---| | `PdfRenderer.Page` | API 36.1+ | platform release | | `PdfRendererPreV.Page` | SDK extension 18 | API 31+ with the PDF module updated (PreV itself needs extension 13) |
Gate at runtime with `SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S)` [kb://android/guide/sdk-extensions/index]. Extension 18 reaches back to API 31 via mainline updates, so `PdfRendererPreV` is the branch that covers most devices.
## The workflow: open → edit → write
```kotlin // The fd must be seekable — pipes/sockets are rejected at construction. ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY).use { fd -> PdfRenderer(fd).use { renderer -> // or PdfRendererPreV on the ext-18 branch renderer.openPage(0).use { page -> // Only SUPPORTED annotation types are listed. The pairs are // android.util.Pair — NO Kotlin destructuring (no component1/2); // read them with .first / .second. val existing = page.getPageAnnotations() val staleId: Int? = existing.firstOrNull { it.second is FreeTextAnnotation }?.first
val highlight = HighlightAnnotation(boundsList) // List<RectF> quads val id = page.addPageAnnotation(highlight) check(id != -1) { "annotation rejected" } // add returns -1, it does NOT throw
highlight.color = newColor page.updatePageAnnotation(id, highlight) // by id -> Boolean success staleId?.let { page.removePageAnnotation(it) } // by id, not list position } // Write BEFORE close(), to a separate writable fd; the boolean is // removePasswordProtection (IOException if true and the doc stays encrypted). ParcelFileDescriptor.open( dest, ParcelFileDescriptor.MODE_READ_WRITE or ParcelFileDescriptor.MODE_CREATE, ).use { out -> renderer.write(out, false) } } } ```
Contracts:
- **`addPageAnnotation` returns the annotation id, or `-1` when the annotation cannot be added — check the return; only null/`UNKNOWN`-type/already-attached arguments throw** (`IllegalArgumentException`). - **An annotation instance is single-attach document-wide**: adding one that is "already added in this page or some other page" throws. Construct a fresh component object per add; don't reuse a removed one across pages. - **Ids, not list positions, drive `update`/`remove`.** `getPageAnnotations()` returns only annotation types the API models, so a page with unsupported annotations has gaps — the `Pair.first` id is the stable handle. - **One page open at a time** — the pre-existing `PdfRenderer` invariant ("you can have only a single page opened at any given time") still applies; close the page before opening the next. - **`write()` before `close()`**, destination must be a distinct writable seekable fd; `IllegalStateException` after close. - **The pairs are `android.util.Pair`, not `kotlin.Pair`** — Kotlin destructuring (`for ((id, a) in …)`) does not compile against them; use `.first`/`.second`.
## Rendering what you edited
Annotation types render only when `RenderParams.renderFlags` includes them: `FLAG_RENDER_TEXT_ANNOTATIONS` / `FLAG_RENDER_HIGHLIGHT_ANNOTATIONS` (and the 36.1 additions `FLAG_RENDER_FREETEXT_ANNOTATIONS` / `FLAG_RENDER_STAMP_ANNOTATIONS`). An added stamp or free-text that "doesn't show up" in your preview bitmap is usually a missing render flag, not a failed add — re-render with the matching flags set via `RenderParams.Builder.setRenderFlags(...)` and the `render(bitmap, clip, transform, params)` overload. The render-mode constants live on **`RenderParams`** (and legacy `PdfRenderer.Page`) — `PdfRendererPreV.Page` has none, so on the PreV branch write `RenderParams.Builder(RenderParams.RENDER_MODE_FOR_DISPLAY)`; qualifying it via `PdfRendererPreV.Page` does not compile.
## Component vocabulary (android.graphics.pdf.component)
- `HighlightAnnotation(List<RectF>)` — quad list, one rect per highlighted run. - `FreeTextAnnotation(RectF, String)` — bounds + text; text/background colors settable. - `StampAnnotation(RectF)` — a container: **only** `PdfPagePathObject`, `PdfPageTextObject`, or `PdfPageImageObject` children (`addObject`), per the class contract. - Page objects also attach directly to the page (`addPageObject` / `getPageObjects` / `updatePageObject` / `removePageObject` — same id-based contract as annotations), and carry a transform matrix (`PdfPageObject.setMatrix`/`transform`). `PdfPagePathObject` stroke defaults to opaque black in sRGB. - `Page.getTopPageObjectAtPosition(PointF, …)` hit-tests the topmost object — use it for tap-to-select before update/remove.
## Out of scope (route elsewhere)
Creating PDFs from scratch (`PdfDocument` canvas API), form filling (`applyEdit`, API 35), text extraction/search, and embedding a viewer UI (`PdfViewerFragment` — display-only [kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]) are separate surfaces; third-party SDKs remain the answer only below the version gate or for annotation types the component API doesn't model.
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for pdf-annotations, ready for a manual X post.
pdf-annotations: Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp)... 136 stars https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x
Listing + install path for pdf-annotations: https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=x Install: npx skills add rcosteira79/android-skills --skill pdf-annotations
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to rcosteira79 but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations/audit)
[](https://www.openagentskill.com/skills/rcosteira79-pdf-annotations?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)rcosteira79
@rcosteira79
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.6K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.6K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.6K StarsPermission surface
filesystem or document access, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
filesystem or document access, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
filesystem or document access, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness
Permission surface
filesystem or document access, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness