My question is an attempt to understand the proof of lemma 6.17.3 (page 164) in the Stacks Project: http://www.math.columbia.edu/algebraic_geometry/stacks-git/book.pdf
This lemma states:
Let $F$ be a presheaf of sets on $X$. Any map $F\to G$ into a sheaf of sets factors uniquely as $F \to F^{S} \to G$ (when $F^{S}$ denotes the sheafification of $F$).
The part that I'd like to understand is: why is the above map $F^{S} \to G$ unique?
You could look at any proof of the existence of the associated sheaf for sheaves of sets, abelian groups... For instance: for sheaves of abelian groups, see B. Iversen, Cohomology of sheaves, Springer Universitext.
The key point is that another morphism of sheaves $F^S \longrightarrow G$ such that composed with the universal map $F\longrightarrow F^S$ gives you your original $F \longrightarrow G$, would induce the same morphism on all stalks $F_x = F^S_x \longrightarrow G_x$ for every point $x\in X$. Then, as morphisms of sheaves are determined by their induced maps on stalks (Iversen, lemma 2.2 (i)), they would agree.